mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 08:20:08 +00:00
Bug fix
This commit is contained in:
@@ -55,6 +55,9 @@ export async function botHasPermission(
|
||||
const guild = await cacheHandlers.get("guilds", guildID);
|
||||
if (!guild) return false;
|
||||
|
||||
// Check if the bot is the owner of the guild, if it is, returns true
|
||||
if (guild.ownerID === botID) return true;
|
||||
|
||||
const member = guild.members.get(botID);
|
||||
if (!member) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user