16 |
const { commandName } = interaction; |
const { commandName } = interaction; |
17 |
|
|
18 |
const command = await client.commands.get(commandName); |
const command = await client.commands.get(commandName); |
|
const allowed = await client.auth.verify(interaction.member! as GuildMember, commandName); |
|
19 |
|
|
20 |
if (command && command.supportsInteractions) { |
if (command && command.supportsInteractions) { |
21 |
|
const allowed = await client.auth.verify(interaction.member! as GuildMember, command); |
22 |
|
|
23 |
if (!allowed) { |
if (!allowed) { |
24 |
await interaction.reply({ |
await interaction.reply({ |
25 |
embeds: [ |
embeds: [ |