Fix thread notification channel mention

master
Miikka Virtanen 2017-01-01 06:36:15 +02:00
parent e922f78ef3
commit b82eb08505
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ bot.on('messageCreate', (msg) => {
bot.createMessage(channel.id, `${logs.length} previous modmail logs with this user. Use !logs ${msg.author.id} for details.`); bot.createMessage(channel.id, `${logs.length} previous modmail logs with this user. Use !logs ${msg.author.id} for details.`);
} }
let creationNotificationMessage = `New modmail thread: ${channel.mention}`; let creationNotificationMessage = `New modmail thread: <#${channel.id}>`;
if (config.pingCreationNotification) creationNotificationMessage = `@here ${creationNotificationMessage}`; if (config.pingCreationNotification) creationNotificationMessage = `@here ${creationNotificationMessage}`;
bot.createMessage(modMailGuild.id, { bot.createMessage(modMailGuild.id, {