/[sudobot]/trunk/src/events/interaction/InteractionCreate.ts
ViewVC logotype

Diff of /trunk/src/events/interaction/InteractionCreate.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 57 by rakin, Mon Jul 29 17:28:24 2024 UTC revision 58 by rakin, Mon Jul 29 17:28:25 2024 UTC
# Line 16  export default class InteractionCreateEv Line 16  export default class InteractionCreateEv
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: [

Legend:
Removed from v.57  
changed lines
  Added in v.58

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26