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

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

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

revision 206 by rakin, Mon Jul 29 17:28:41 2024 UTC revision 207 by rakin, Mon Jul 29 17:29:01 2024 UTC
# Line 53  export default class InteractionCreateEv Line 53  export default class InteractionCreateEv
53                  if (!await client.cooldown.start(interaction, options))                  if (!await client.cooldown.start(interaction, options))
54                      return;                      return;
55    
56                  await command.run(client, interaction, options);                  await command.execute(client, interaction, options);
57                  (global as any).lastCommand = commandName;                  (global as any).lastCommand = commandName;
58              }              }
59          }          }
# Line 71  export default class InteractionCreateEv Line 71  export default class InteractionCreateEv
71                      return;                      return;
72                  }                  }
73    
74                    if (!(await command.perms(client, interaction))) {
75                        return;
76                    }
77    
78                  const options = {                  const options = {
79                      cmdName: commandName,                      cmdName: commandName,
80                      options: interaction.options,                      options: interaction.options,
# Line 97  export default class InteractionCreateEv Line 101  export default class InteractionCreateEv
101                  if (!allowed) {                  if (!allowed) {
102                      return;                      return;
103                  }                  }
104                    
105                    if (!(await command.perms(client, interaction))) {
106                        return;
107                    }
108    
109                  await command.default(client, interaction);                  await command.default(client, interaction);
110              }              }

Legend:
Removed from v.206  
changed lines
  Added in v.207

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26