diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-04-05 20:25:05 -0400 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-04-05 20:25:05 -0400 |
| commit | 878d7d60331e5fa7f0bd54b4dba6e9427be82f0c (patch) | |
| tree | 087f6878a7abad3a92801d8b0cf29d05a26428e2 /commands/Pokemon/claim.js | |
| parent | b41df418dcaa114a173b0eec234b4b71f91b7318 (diff) | |
| download | PokeBot-878d7d60331e5fa7f0bd54b4dba6e9427be82f0c.tar.gz PokeBot-878d7d60331e5fa7f0bd54b4dba6e9427be82f0c.tar.bz2 PokeBot-878d7d60331e5fa7f0bd54b4dba6e9427be82f0c.zip | |
more stuff
Diffstat (limited to 'commands/Pokemon/claim.js')
| -rw-r--r-- | commands/Pokemon/claim.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/Pokemon/claim.js b/commands/Pokemon/claim.js index 40edf49..00a9188 100644 --- a/commands/Pokemon/claim.js +++ b/commands/Pokemon/claim.js @@ -13,7 +13,7 @@ exports.run = async (bot, msg) => { if (!msg.channel.name.startsWith('gym-')) return msg.reply('Go into one of the gym channels and try again.'); - if (bot.plugins.isOwned(msg.channel.topic)) { + if (bot.plugins.gyms.isOwned(msg.channel.topic)) { const team = bot.plugins.gyms.getTeam(msg.member); if (!team) return msg.reply('You have to join a team before you can claim a gym.'); msg.reply('Alright, you have claimed this gym as yours! Be ready to battle anyone who approaches you'); |
