mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
21 lines
704 B
JavaScript
21 lines
704 B
JavaScript
const Command = require('../../structures/Command');
|
|
|
|
module.exports = class DeleteReminderCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'delete-reminder',
|
|
aliases: ['delete-remind', 'delete-timer', 'del-reminder', 'del-remind', 'del-timer'],
|
|
group: 'remind',
|
|
memberName: 'delete-reminder',
|
|
description: 'Deletes your reminder.'
|
|
});
|
|
}
|
|
|
|
async run(msg) {
|
|
const exists = await this.client.timers.exists(msg.channel.id, msg.author.id);
|
|
if (!exists) return msg.reply('🕰️ You do not have a timer set in this channel.');
|
|
await this.client.timers.deleteTimer(msg.channel.id, msg.author.id);
|
|
return msg.say('🕰️ Your timer has been deleted.');
|
|
}
|
|
};
|