/[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 55 by rakin, Mon Jul 29 17:28:24 2024 UTC revision 344 by rakin, Mon Jul 29 17:29:40 2024 UTC
# Line 1  Line 1 
1  import { CommandInteraction, GuildMember, Interaction, Message, TextChannel } from 'discord.js';  import { CommandInteraction, Message, TextChannel } from 'discord.js';
2  import BaseCommand from '../../utils/structures/BaseCommand';  import BaseCommand from '../../utils/structures/BaseCommand';
3  import DiscordClient from '../../client/Client';  import DiscordClient from '../../client/Client';
4  import CommandOptions from '../../types/CommandOptions';  import CommandOptions from '../../types/CommandOptions';
5  import InteractionOptions from '../../types/InteractionOptions';  import InteractionOptions from '../../types/InteractionOptions';
6  import MessageEmbed from '../../client/MessageEmbed';  import MessageEmbed from '../../client/MessageEmbed';
 import Help from '../../utils/help';  
7  import ms from 'ms';  import ms from 'ms';
 import { timeSince } from '../../utils/util';  
8  import { setTimeoutv2 } from '../../utils/setTimeout';  import { setTimeoutv2 } from '../../utils/setTimeout';
9    
10  export default class ExpireScheduleCommand extends BaseCommand {  export default class ExpireScheduleCommand extends BaseCommand {
# Line 89  export default class ExpireScheduleComma Line 87  export default class ExpireScheduleComma
87          }          }
88    
89          try {          try {
90              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', time1, msg.guild!.id, `expiresc ${time1} ${time2} ${text!} #${channel.name}`, text!, channel.id, msg.guild!.id, time2);
91    
92              await msg.reply({              await msg.reply({
93                  embeds: [                  embeds: [

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26