test starboard

This commit is contained in:
Daniel Odendahl Jr
2017-05-23 23:21:45 +00:00
parent d6aeefc2a3
commit a2a73166d0
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -89,6 +89,7 @@ client.on('messageReactionAdd', (reaction, user) => {
reaction.remove(user);
return msg.reply('You cannot star your own messages, idiot');
}
console.log(msg.id);
client.registry.resolveCommand('random:starboard').run(msg, { id: msg.id }, true);
});
+1
View File
@@ -28,6 +28,7 @@ module.exports = class StarCommand extends Command {
const channel = msg.guild.channels.get(msg.guild.settings.get('starboard'));
if (!channel || !channel.permissionsFor(this.client.user).has('EMBED_LINKS')) return null;
try {
console.log(msg.id);
const message = await msg.channel.fetchMessage(id);
if (!reaction && msg.author.id === message.author.id)
return msg.reply('You cannot star your own messages, idiot.');