Skip to content

Commit

Permalink
fix(hub leave): fix permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-737 committed Nov 22, 2023
1 parent b16b13f commit 0eb2c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/slash/Main/hub/leave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class Leave extends Hub {
});
}

if (interaction.inCachedGuild() && interaction.member.permissions.has('ManageChannels')) {
if (interaction.inCachedGuild() && interaction.member.permissions.has('ManageChannels', true)) {
return await interaction.reply({
embeds: [
errorEmbed(
Expand Down

0 comments on commit 0eb2c2d

Please sign in to comment.