/[sudobot]/trunk/src/events/message/MessageCreateEvent.ts
ViewVC logotype

Diff of /trunk/src/events/message/MessageCreateEvent.ts

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

revision 51 by rakin, Mon Jul 29 17:28:23 2024 UTC revision 54 by rakin, Mon Jul 29 17:28:24 2024 UTC
# Line 30  export default class MessageCreateEvent Line 30  export default class MessageCreateEvent
30    
31              if (command && command.supportsLegacy) {              if (command && command.supportsLegacy) {
32                  if (allowed) {                  if (allowed) {
33                      await command.run(client, message, {                      const options = {
34                          cmdName,                          cmdName,
35                          args,                          args,
36                          argv: [cmdName, ...args],                          argv: [cmdName, ...args],
37                          normalArgs: args.filter(a => a[0] !== '-'),                          normalArgs: args.filter(a => a[0] !== '-'),
38                          options: args.filter(a => a[0] === '-'),                          options: args.filter(a => a[0] === '-'),
39                          isInteraction: false                          isInteraction: false
40                      } as CommandOptions);                          } as CommandOptions;
41    
42                        if (!await client.cooldown.start(message, options))
43                            return;
44                        
45                        await command.run(client, message, options);    
46                  }                  }
47                  else {                  else {
48                      await message.reply({                      await message.reply({

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26