diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-02 15:24:02 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-02 15:24:02 +0100 |
| commit | 74fc20f62439e2168e5dad29894e62e74a40ed44 (patch) | |
| tree | d261c1a5c30a5d013563288b4051907d1700ccb5 | |
| parent | cron: keep scheduled audio silent (diff) | |
| download | senator-sperma-74fc20f62439e2168e5dad29894e62e74a40ed44.tar.gz senator-sperma-74fc20f62439e2168e5dad29894e62e74a40ed44.zip | |
say: do not abort if the ephemeral ack is already gone
| -rw-r--r-- | src/commands/utilities.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commands/utilities.rs b/src/commands/utilities.rs index 7679b14..b77f44d 100644 --- a/src/commands/utilities.rs +++ b/src/commands/utilities.rs | |||
| @@ -986,7 +986,9 @@ pub async fn say(ctx: Context<'_>, #[description = "Message to send"] text: Stri | |||
| 986 | .ephemeral(true), | 986 | .ephemeral(true), |
| 987 | ) | 987 | ) |
| 988 | .await?; | 988 | .await?; |
| 989 | ack.delete(ctx).await?; | 989 | if let Err(e) = ack.delete(ctx).await { |
| 990 | warn!("say: failed to delete ephemeral acknowledgement: {e}"); | ||
| 991 | } | ||
| 990 | 992 | ||
| 991 | ctx.channel_id() | 993 | ctx.channel_id() |
| 992 | .say(ctx.serenity_context(), &text) | 994 | .say(ctx.serenity_context(), &text) |
