/[sudobot]/trunk/src/commands/automation/ExpireScheduleCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/automation/ExpireScheduleCommand.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 55 by rakin, Mon Jul 29 17:28:24 2024 UTC
# Line 79  export default class ExpireScheduleComma Line 79  export default class ExpireScheduleComma
79              text = args.join(' ');              text = args.join(' ');
80          }          }
81    
82            if (!channel.send) {
83                await msg.reply({
84                    content: 'Invalid text channel.',
85                    ephemeral: true
86                });
87    
88                return;
89            }
90    
91          try {          try {
92              const timeout = await setTimeoutv2('send-expire.ts', time1, msg.guild!.id, `expiresc ${time1} ${time2} ${text!} #${channel.name}`, text!, channel.id, msg.guild!.id, time2);              const timeout = await setTimeoutv2('send-expire.ts', time1, msg.guild!.id, `expiresc ${time1} ${time2} ${text!} #${channel.name}`, text!, channel.id, msg.guild!.id, time2);
93    

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26