Fix error when checking msg channel instances (Eris doesn't expose GuildChannel from Eris.GuildChannel?)

master
Miikka Virtanen 2016-12-30 18:01:16 +02:00
parent 7249e04790
commit d616ecd957
1 changed files with 0 additions and 5 deletions

View File

@ -359,7 +359,6 @@ bot.on('messageCreate', msg => {
// These messages get relayed back to the DM thread between the bot and the user
// Attachments are shown as URLs
bot.registerCommand('reply', (msg, args) => {
if (! (msg.channel instanceof Eris.GuildChannel)) return;
if (msg.channel.guild.id !== modMailGuild.id) return;
if (! msg.member.permission.has('manageRoles')) return;
@ -412,7 +411,6 @@ bot.registerCommand('reply', (msg, args) => {
bot.registerCommandAlias('r', 'reply');
bot.registerCommand('close', (msg, args) => {
if (! (msg.channel instanceof Eris.GuildChannel)) return;
if (msg.channel.guild.id !== modMailGuild.id) return;
if (! msg.member.permission.has('manageRoles')) return;
@ -443,7 +441,6 @@ Logs: <${logurl}>`;
});
bot.registerCommand('block', (msg, args) => {
if (! (msg.channel instanceof Eris.GuildChannel)) return;
if (msg.channel.guild.id !== modMailGuild.id) return;
if (! msg.member.permission.has('manageRoles')) return;
@ -468,7 +465,6 @@ bot.registerCommand('block', (msg, args) => {
});
bot.registerCommand('unblock', (msg, args) => {
if (! (msg.channel instanceof Eris.GuildChannel)) return;
if (msg.channel.guild.id !== modMailGuild.id) return;
if (! msg.member.permission.has('manageRoles')) return;
@ -493,7 +489,6 @@ bot.registerCommand('unblock', (msg, args) => {
});
bot.registerCommand('logs', (msg, args) => {
if (! (msg.channel instanceof Eris.GuildChannel)) return;
if (msg.channel.guild.id !== modMailGuild.id) return;
if (! msg.member.permission.has('manageRoles')) return;