Fix some deprecated stuff

This commit is contained in:
Daniel Odendahl Jr
2017-04-26 17:20:08 +00:00
parent c21c524efc
commit 01ada63da3
44 changed files with 54 additions and 54 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ module.exports = class WouldYouRatherCommand extends Command {
async run(message) {
if (message.channel.type !== 'dm')
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS'))
if (!message.channel.permissionsFor(this.client.user).permissions.has('EMBED_LINKS'))
return message.say('This Command requires the `Embed Links` Permission.');
try {
const { body } = await request