Compare commits

...

2 Commits

Author SHA1 Message Date
bluepython508
994babaacf Expand gitignore to include other dbs or tokens 2024-12-15 19:26:43 +00:00
bluepython508
06f116976d Switch to ephemeral defer for collect/spread to make responses properly ephemeral 2024-12-15 19:25:59 +00:00
2 changed files with 4 additions and 3 deletions

3
.gitignore vendored
View File

@@ -1,4 +1,5 @@
/target
/.direnv/
/db.sqlite
/*.sqlite
/token
/token-*

View File

@@ -99,7 +99,7 @@ async fn spread(
.guild_id()
.ok_or_eyre("This bot only works in servers")?;
ctx.defer().await?;
ctx.defer_ephemeral().await?;
let from = from
.to_channel(ctx)
@@ -134,7 +134,7 @@ async fn collect(
.guild_id()
.ok_or_eyre("This bot only works in servers")?;
ctx.defer().await?;
ctx.defer_ephemeral().await?;
let users = channel_children(&ctx, from)
.await?