From 8aa8a95a11c4be721b3cc143c649e4577737438f Mon Sep 17 00:00:00 2001 From: holzmaster Date: Sun, 14 Jul 2024 13:19:02 +0200 Subject: [PATCH] Only allow for trusted users --- src/commands/gibmirids.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/commands/gibmirids.ts b/src/commands/gibmirids.ts index 8c595c75..39e14cd0 100644 --- a/src/commands/gibmirids.ts +++ b/src/commands/gibmirids.ts @@ -14,6 +14,11 @@ export default class GibMirIdsCommand implements MessageCommand { description = "Listet IDs auf dem Server für einfachere Config"; async handleMessage(message: ProcessableMessage, context: BotContext) { + if (!context.roleGuard.isTrusted(message.member)) { + await message.react("❌"); + return; + } + const lines = [`# Guild: \`${context.guild.id}\``, ""]; const channels = [...context.guild.channels.cache.values()].sort(