mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
fix perm bug
This commit is contained in:
@@ -2,7 +2,7 @@ name: Discordeno
|
|||||||
description: >-
|
description: >-
|
||||||
Discord Deno TypeScript API library wrapper(Officially vetted library by
|
Discord Deno TypeScript API library wrapper(Officially vetted library by
|
||||||
Discord Team) https://discordeno.netlify.app
|
Discord Team) https://discordeno.netlify.app
|
||||||
version: 9.0.7
|
version: 9.0.10
|
||||||
stable: true
|
stable: true
|
||||||
entry: mod.ts
|
entry: mod.ts
|
||||||
repository: 'https://github.com/Skillz4Killz/Discordeno'
|
repository: 'https://github.com/Skillz4Killz/Discordeno'
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ export async function hasChannelPermissions(
|
|||||||
if (!guild) return false;
|
if (!guild) return false;
|
||||||
|
|
||||||
if (guild.ownerID === memberID) return true;
|
if (guild.ownerID === memberID) return true;
|
||||||
if (botHasPermission(guild.id, [Permissions.ADMINISTRATOR])) return true;
|
if (await memberIDHasPermission(memberID, guild.id, ["ADMINISTRATOR"])) return true;
|
||||||
|
|
||||||
const member = guild.members.get(memberID);
|
const member = guild.members.get(memberID);
|
||||||
if (!member) return false;
|
if (!member) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user