Skip to content

Commit

Permalink
allow anyone to run command
Browse files Browse the repository at this point in the history
  • Loading branch information
mbund committed Dec 2, 2023
1 parent ca96fc9 commit 6822f54
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,6 @@ const createWorkspace: Command = {
},
],
async run(interaction) {
const roles = interaction.member?.roles as GuildMemberRoleManager;

// only those with engineering role are authorized to run this command (right now)
if (
!roles.cache.some((role) =>
["832314924498944051", "1011443117850898473"].includes(role.id)
)
) {
interaction.reply({
content: "You are not authorized to run this command",
ephemeral: true,
});
return;
}

await interaction.deferReply({ ephemeral: true });
await sleep(1000 * 5);

Expand Down

0 comments on commit 6822f54

Please sign in to comment.