Skip to content

Commit

Permalink
Wrong permission display
Browse files Browse the repository at this point in the history
  • Loading branch information
Larsundso committed Jan 1, 2024
1 parent 1b0824f commit 1ee3d5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import requestHandlerError from '../../requestHandlerError.js';
*/
export default async (guild: Discord.Guild) => {
if (!canGetVanityURL(await getBotMemberFromGuild(guild))) {
const e = requestHandlerError(`Cannot get vanity URL`, [Discord.PermissionFlagsBits.KickMembers]);
const e = requestHandlerError(`Cannot get vanity URL`, [Discord.PermissionFlagsBits.ManageGuild]);

error(guild, e);
return e;
Expand Down

0 comments on commit 1ee3d5e

Please sign in to comment.