🐛 fix permission dispatch
This commit is contained in:
parent
fb4502bb68
commit
3ea1dff220
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -27,7 +27,7 @@ export async function dispatch(this: WebSocket, document: Event) {
|
|||||||
if (document.guild_id) {
|
if (document.guild_id) {
|
||||||
if (!this.intents.has("GUILDS")) return;
|
if (!this.intents.has("GUILDS")) return;
|
||||||
const channel_id = document.channel_id || document.data?.channel_id;
|
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);
|
console.log("event", document);
|
||||||
|
|||||||
Reference in New Issue
Block a user