mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 13:53:12 +02:00
Fix
This commit is contained in:
@@ -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, '🔉');
|
||||
|
||||
Reference in New Issue
Block a user