This commit is contained in:
Dragon Fire
2020-10-30 13:02:56 -04:00
parent 3a54cfb7f7
commit 05c7429115
+1 -1
View File
@@ -75,7 +75,7 @@ module.exports = class WhosThatPokemonCryCommand extends Command {
try {
const data = await this.client.pokemon.fetch(pokemon.toString());
const names = data.names.map(name => name.name.toLowerCase());
const attachment = await this.client.registry.command.get('whos-that-pokemon').createImage(data, false);
const attachment = await this.client.registry.commands.get('whos-that-pokemon').createImage(data, false);
await data.fetchCry();
connection.play(Readable.from([data.cry]));
await reactIfAble(msg, this.client.user, '🔉');