Skip to content

Commit

Permalink
Only allow for trusted users
Browse files Browse the repository at this point in the history
  • Loading branch information
holzmaster committed Jul 14, 2024
1 parent 2efe25e commit 8aa8a95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/commands/gibmirids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8aa8a95

Please sign in to comment.