mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +02:00
Fix
This commit is contained in:
@@ -75,7 +75,7 @@ module.exports = class WhosThatPokemonCryCommand extends Command {
|
|||||||
try {
|
try {
|
||||||
const data = await this.client.pokemon.fetch(pokemon.toString());
|
const data = await this.client.pokemon.fetch(pokemon.toString());
|
||||||
const names = data.names.map(name => name.name.toLowerCase());
|
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();
|
await data.fetchCry();
|
||||||
connection.play(Readable.from([data.cry]));
|
connection.play(Readable.from([data.cry]));
|
||||||
await reactIfAble(msg, this.client.user, '🔉');
|
await reactIfAble(msg, this.client.user, '🔉');
|
||||||
|
|||||||
Reference in New Issue
Block a user