mirror of
https://github.com/spacebarchat/server.git
synced 2026-07-28 09:49:25 +00:00
🐛 fix permission dispatch
This commit is contained in:
Generated
BIN
Binary file not shown.
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user