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

Diff of /trunk/src/commands/automation/DelQueueCommand.ts

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

revision 46 by rakin, Mon Jul 29 17:28:21 2024 UTC revision 49 by rakin, Mon Jul 29 17:28:21 2024 UTC
# Line 18  module.exports = { Line 18  module.exports = {
18          const timeout = await getTimeout(parseInt(cm.args[0]));          const timeout = await getTimeout(parseInt(cm.args[0]));
19          console.log(getTimeouts());          console.log(getTimeouts());
20    
21          if (!timeout) {          if (!timeout || timeout.row.guild_id !== msg.guild.id) {
22              await msg.reply({              await msg.reply({
23                  embeds: [                  embeds: [
24                      new MessageEmbed()                      new MessageEmbed()
# Line 37  module.exports = { Line 37  module.exports = {
37                  new MessageEmbed()                  new MessageEmbed()
38                  .setColor('#f14a60')                  .setColor('#f14a60')
39                  .setDescription(`The queue has been deleted.`)                  .setDescription(`The queue has been deleted.`)
40                    .addField('Command', `\`${timeout.row.cmd}\``)
41                  .setFooter({                  .setFooter({
42                      text: '' + timeout.row.id                      text: '' + timeout.row.id
43                  })                  })

Legend:
Removed from v.46  
changed lines
  Added in v.49

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26