diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 01:08:08 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 01:08:08 +0100 |
| commit | 8e6fced543735aa4c68e70221518a37c36780d59 (patch) | |
| tree | 7b7e6be03c3091caf2ae7bed12b40b6d6f1e71e5 /src/commands/utilities.rs | |
| parent | utilities: sanitize filenames and isolate temp operations (diff) | |
| download | senator-sperma-8e6fced543735aa4c68e70221518a37c36780d59.tar.gz senator-sperma-8e6fced543735aa4c68e70221518a37c36780d59.zip | |
commands: gate admin, trigger, cron and recording behind permissions
Diffstat (limited to '')
| -rw-r--r-- | src/commands/utilities.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/utilities.rs b/src/commands/utilities.rs index 2179ce9..bf93491 100644 --- a/src/commands/utilities.rs +++ b/src/commands/utilities.rs | |||
| @@ -1016,7 +1016,7 @@ pub async fn message_download(ctx: Context<'_>, message: serenity::Message) -> R | |||
| 1016 | } | 1016 | } |
| 1017 | 1017 | ||
| 1018 | /// Echo text to channel | 1018 | /// Echo text to channel |
| 1019 | #[poise::command(slash_command)] | 1019 | #[poise::command(slash_command, required_permissions = "MANAGE_MESSAGES")] |
| 1020 | pub async fn say(ctx: Context<'_>, #[description = "Message to send"] text: String) -> Result<()> { | 1020 | pub async fn say(ctx: Context<'_>, #[description = "Message to send"] text: String) -> Result<()> { |
| 1021 | // Acknowledge the interaction with an invisible ephemeral reply, delete it, | 1021 | // Acknowledge the interaction with an invisible ephemeral reply, delete it, |
| 1022 | // then post the actual text as a normal channel message (not a reply to the | 1022 | // then post the actual text as a normal channel message (not a reply to the |
