/[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 54 by rakin, Mon Jul 29 17:28:24 2024 UTC revision 55 by rakin, Mon Jul 29 17:28:24 2024 UTC
# Line 32  export default class InteractionCreateEv Line 32  export default class InteractionCreateEv
32                      return;                      return;
33                  }                  }
34    
35                  await command.run(client, interaction, {                  const options = {
36                      cmdName: commandName,                      cmdName: commandName,
37                      options: interaction.options,                      options: interaction.options,
38                      isInteraction: true                      isInteraction: true
39                  } as InteractionOptions);                  } as InteractionOptions;
40    
41                    if (!await client.cooldown.start(interaction, options))
42                        return;
43    
44                    await command.run(client, interaction, options);
45              }              }
46          }          }
47      }      }

Legend:
Removed from v.54  
changed lines
  Added in v.55

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26