mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-23 02:42:28 +01:00
🐛 fix permission dispatch
This commit is contained in:
parent
fb4502bb68
commit
3ea1dff220
4
package-lock.json
generated
4
package-lock.json
generated
@ -540,7 +540,7 @@
|
||||
},
|
||||
"node_modules/fosscord-server-util": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "git+ssh://git@github.com/fosscord/fosscord-server-util.git#7363f243ad9936466b97266592037ee0a5290c54",
|
||||
"resolved": "git+ssh://git@github.com/fosscord/fosscord-server-util.git#2859daeba89e56683c60d99db0d6100fa4ac797d",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
@ -2202,7 +2202,7 @@
|
||||
"integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ="
|
||||
},
|
||||
"fosscord-server-util": {
|
||||
"version": "git+ssh://git@github.com/fosscord/fosscord-server-util.git#7363f243ad9936466b97266592037ee0a5290c54",
|
||||
"version": "git+ssh://git@github.com/fosscord/fosscord-server-util.git#2859daeba89e56683c60d99db0d6100fa4ac797d",
|
||||
"from": "fosscord-server-util@github:fosscord/fosscord-server-util",
|
||||
"requires": {
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user