diff options
Diffstat (limited to 'bot/src/commands/timer.js')
| -rw-r--r-- | bot/src/commands/timer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/src/commands/timer.js b/bot/src/commands/timer.js index 3b3807e..68a113c 100644 --- a/bot/src/commands/timer.js +++ b/bot/src/commands/timer.js @@ -41,7 +41,7 @@ export default { setTimeout(async function(){ if (interaction.guild) { let remindChannel = interaction.client.channels.cache.get(interaction.channel.id); - if (!remindChannel) return console.error('Unknown channel.'); + if (!remindChannel) return; return await remindChannel.send({ content: `${interaction.user}, You have been reminded.${message ? '\n\n' + content : ''}` }); } else { return await interaction.user.send({ content: `You have been reminded.${message ? '\n\n' + content : ''}` }); |
