mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix pokedex audio
This commit is contained in:
@@ -112,7 +112,7 @@ module.exports = class PokedexCommand extends Command {
|
||||
.addField('❯ Gender Rate', pokemon.genderRate.genderless
|
||||
? 'Genderless'
|
||||
: `♂️ ${pokemon.genderRate.male}% ♀️ ${pokemon.genderRate.female}%`);
|
||||
if (msg.guild && pokemon.cry && !this.client.dispatchers.has(msg.guild.id)) {
|
||||
if (msg.guild && pokemon.cry) {
|
||||
const connection = msg.guild ? this.client.dispatchers.get(msg.guild.id) : null;
|
||||
if (connection) {
|
||||
connection.play(pokemon.cry);
|
||||
|
||||
Reference in New Issue
Block a user