Fix Starboard

This commit is contained in:
Daniel Odendahl Jr
2017-05-23 22:33:10 +00:00
parent 8e25f7f95f
commit d6aeefc2a3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ module.exports = class StarCommand extends Command {
async run(msg, args, reaction) {
const { id } = args;
const channel = msg.guild.settings.get('starboard');
const channel = msg.guild.channels.get(msg.guild.settings.get('starboard'));
if (!channel || !channel.permissionsFor(this.client.user).has('EMBED_LINKS')) return null;
try {
const message = await msg.channel.fetchMessage(id);