Skip to content

Commit

Permalink
Update play.ts (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
humbertovnavarro committed Feb 21, 2023
1 parent 0b15290 commit abc547e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/play.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default {
let argSongName = interaction.options.getString("song");
if (!argSongName) argSongName = input;

const guildMemer = interaction.guild!.members.cache.get(interaction.user.id);
const { channel } = guildMemer!.voice;
const guildMember = interaction.guild!.members.cache.get(interaction.user.id);
const { channel } = guildMember!.voice;

if (!channel)
return interaction.reply({ content: i18n.__("play.errorNotChannel"), ephemeral: true }).catch(console.error);
Expand Down

0 comments on commit abc547e

Please sign in to comment.