diff options
Diffstat (limited to 'src/commands')
| -rw-r--r-- | src/commands/zerotwo/darling.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands/zerotwo/darling.ts b/src/commands/zerotwo/darling.ts index bc0dc25..5a409c8 100644 --- a/src/commands/zerotwo/darling.ts +++ b/src/commands/zerotwo/darling.ts @@ -48,6 +48,7 @@ module.exports = class DarlingZeroTwo extends Command { if (error) { console.log(error) } else if (guild && darlingName == 'remove') { + // @ts-ignore linting error shows that channelID doesnt exist when it does if (msg.author.id == guild.userID) { await Darling.findOneAndDelete({ guildID: msg.guild.id }) msg.say('The current darling has been removed. ' + emoji.random()) @@ -57,6 +58,7 @@ module.exports = class DarlingZeroTwo extends Command { } else if (!guild && darlingName == 'remove') { msg.reply('There is no darling set in this server. ' + emoji.random()) } else if (guild && darlingName == 'set') { + // @ts-ignore linting error shows that channelID doesnt exist when it does msg.reply(`I already have a darling! It\'s <@${guild.userID}>! ` + emoji.random()) } else if (!guild && darlingName == 'set') { await darling.save() @@ -73,6 +75,7 @@ module.exports = class DarlingZeroTwo extends Command { } else if (!guild) { msg.reply('I haven\'t found my darling yet! To set one, do `uwu!darling set`. ' + emoji.random()) } else if (guild) { + // @ts-ignore linting error shows that channelID doesnt exist when it does msg.reply(`My darling is <@${guild.userID}>. ` + emoji.random()) } }) |