🐛 fix permission dispatch

This commit is contained in:
Flam3rboy 2021-02-15 08:02:05 +01:00
parent fb4502bb68
commit 3ea1dff220
2 changed files with 1 additions and 1 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -27,7 +27,7 @@ export async function dispatch(this: WebSocket, document: Event) {
if (document.guild_id) {
if (!this.intents.has("GUILDS")) return;
const channel_id = document.channel_id || document.data?.channel_id;
permission = new Permissions(await getPermission(this.userid, document.guild_id, channel_id));
permission = await getPermission(this.userid, document.guild_id, channel_id);
}
console.log("event", document);