Skip to content

Commit

Permalink
fix for #311 (#315)
Browse files Browse the repository at this point in the history
* fix for #311
  • Loading branch information
FaiThiX authored May 1, 2024
1 parent 7dd3923 commit de5bc5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/commands/voice.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ module.exports = {
await DiscordMessages.sendVoiceMessage(interaction,
client.intlGet(interaction.guildId, 'commandsVoiceBotJoinedVoice'));
client.log(client.intlGet(null, 'infoCap'), client.intlGet(interaction.guildId, 'commandsVoiceJoin',
{ name: voiceChannel.name, id: voiceChannel.id, guild: voiceChannel.guild.name }));
{ name: voiceChannel && voiceChannel.name ? voiceChannel.name : client.intlGet(interaction.guildId, 'unknown'),
id: voiceChannel && voiceChannel.id ? voiceChannel.id : client.intlGet(interaction.guildId, 'unknown'),
guild: voiceChannel && voiceChannel.guild.name ? voiceChannel.guild.name : client.intlGet(interaction.guildId, 'unknown')}
));
}
else {
await DiscordMessages.sendVoiceMessage(interaction,
Expand Down

0 comments on commit de5bc5d

Please sign in to comment.