Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
na2na-p committed Apr 10, 2024
1 parent 533e61c commit adce999
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ export const getJoinableStateStatus = ({
const voiceState = (() => {
const guild = client.guilds.cache.get(guildId);
if (!guild) return undefined;
const voiceState = guild.voiceStates.cache.get(client.user.id);
return voiceState;
return guild.voiceStates.cache.get(client.user.id);
})();

if (!channel.joinable) {
return JOINABLE_STATE_STATUS.NOT_JOINABLE;
} else if (!channel.viewable) {
return JOINABLE_STATE_STATUS.NOT_VIEWABLE;
} else if (!!voiceState) {
} else if (voiceState) {
return JOINABLE_STATE_STATUS.ALREADY_JOINED;
} else {
return JOINABLE_STATE_STATUS.JOINABLE;
Expand Down

0 comments on commit adce999

Please sign in to comment.