Mention logChannelId option in log channel errors

master
Dragory 2019-12-05 21:49:24 +02:00
parent 69352eb756
commit 4920425ad0
1 changed files with 2 additions and 2 deletions

View File

@ -50,11 +50,11 @@ function getLogChannel() {
const logChannel = inboxGuild.channels.get(config.logChannelId);
if (! logChannel) {
throw new BotError('Log channel not found!');
throw new BotError('Log channel (logChannelId) not found!');
}
if (! (logChannel instanceof Eris.TextChannel)) {
throw new BotError('Make sure log channel is set to a text channel!');
throw new BotError('Make sure the logChannelId option is set to a text channel!');
}
return logChannel;