diff options
| author | Alee <Alee14498@gmail.com> | 2019-10-21 21:44:05 +0000 |
|---|---|---|
| committer | Alee <Alee14498@gmail.com> | 2019-10-21 21:44:05 +0000 |
| commit | f57682985559c4ff3fb4d15deb71dd29c4fed6b2 (patch) | |
| tree | 2be4f931f528cb204aae4a5fbd3d00b1c34be5d2 /commands | |
| parent | a5439413f2288043f76b3932d1ea47d37d7bb66d (diff) | |
| download | PokeBot-f57682985559c4ff3fb4d15deb71dd29c4fed6b2.tar.gz PokeBot-f57682985559c4ff3fb4d15deb71dd29c4fed6b2.tar.bz2 PokeBot-f57682985559c4ff3fb4d15deb71dd29c4fed6b2.zip | |
Fixed timeout and forcedrop
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/Moderation/timeout.js | 2 | ||||
| -rw-r--r-- | commands/Pokemon/forcedrop.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/commands/Moderation/timeout.js b/commands/Moderation/timeout.js index 2e479ac..294ebd5 100644 --- a/commands/Moderation/timeout.js +++ b/commands/Moderation/timeout.js @@ -16,7 +16,7 @@ exports.run = async (bot, msg) => { const member = msg.mentions.members.first(); if (!member) return await msg.reply('Who do I put in time-out?'); - msg.member.addRole(msg.guild.roles.find('name', 'Timeout')); + member.addRole(msg.guild.roles.find('name', 'Timeout')); const { RichEmbed } = require('discord.js'); try { diff --git a/commands/Pokemon/forcedrop.js b/commands/Pokemon/forcedrop.js index 50a9acf..053bfe8 100644 --- a/commands/Pokemon/forcedrop.js +++ b/commands/Pokemon/forcedrop.js @@ -1,6 +1,6 @@ /** ************************************** * - * Ban: Plugin for PokeBot that powers the PokeWorld gym system. + * ForceDrop: Plugin for PokeBot that powers the PokeWorld gym system. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 @@ -11,7 +11,7 @@ exports.run = async (bot, msg) => { const isWhitelist = await bot.plugins.whitelist.isWhitelist(msg.guild.id); if (!isWhitelist) return msg.reply ('This is a Whiltelisted command. Only whitelisted servers can use this command. Sorry!'); - if (!msg.member.hasPermission('MANAGE_MESSAGES')) return msg.reply('You don\'t have permssion to ban members.'); + if (!msg.member.hasPermission('MANAGE_MESSAGES')) return msg.reply('You don\'t have permission to force drop.'); if (!msg.channel.name.startsWith('gym-')) return msg.reply('Go into one of the gym channels and try again.'); if (msg.channel.topic == 'Current Owner: *none*') { msg.reply('This gym does not have an owner.'); |
