Parent Directory
|
Revision Log
|
Patch
revision 51 by rakin, Mon Jul 29 17:28:23 2024 UTC | revision 57 by rakin, Mon Jul 29 17:28:25 2024 UTC | |
---|---|---|
# | Line 64 export default class ExpireCommand exten | Line 64 export default class ExpireCommand exten |
64 | ||
65 | text = args.join(' '); | text = args.join(' '); |
66 | } | } |
67 | ||
68 | if (!channel.send) { | |
69 | await msg.reply({ | |
70 | content: 'Invalid text channel.', | |
71 | ephemeral: true | |
72 | }); | |
73 | ||
74 | return; | |
75 | } | |
76 | ||
77 | try { | try { |
78 | const message = await channel.send({ | const message = await channel.send({ |
79 | content: text! | content: text! |
80 | }); | }); |
81 | ||
82 | const timeout = await setTimeoutv2('expire.ts', time, msg.guild!.id, `expire ${time} ${text!} #${channel.name}`, message.id, channel.id, msg.guild!.id); | const timeout = await setTimeoutv2('expire', time, msg.guild!.id, `expire ${time} ${text!} #${channel.name}`, message.id, channel.id, msg.guild!.id); |
83 | ||
84 | await msg.reply({ | await msg.reply({ |
85 | embeds: [ | embeds: [ |
|
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |