aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/Owners Only/triggeregg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/Owners Only/triggeregg.js b/commands/Owners Only/triggeregg.js
index b695729..4b4c6f1 100644
--- a/commands/Owners Only/triggeregg.js
+++ b/commands/Owners Only/triggeregg.js
@@ -27,7 +27,7 @@ exports.run = async (bot, msg) => {
msg.guild.channels.find('name', 'pokeegghunt').send(':egg: **An egg is available!** First two people to type egg gets to battle! *Someone needs to battle for it though...*');
}
else {
- const gym = msg.guild.channels.filter(channel => channel.type == 'category').find('id', '417149626433404940').children.random().name;
+ const gym = msg.guild.channels.find('id', '417149626433404940').children.random().name;
msg.guild.channels.find('name', 'pokeegghunt').send(':egg: **An egg is available!** *Someone needs to battle for it though...* Go to ' + gym + 'to get it. In 5 minutes, the person holding the gym gets the egg!');
}
}