mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-22 14:55:17 +00:00
Log origin for missing roles
This commit is contained in:
@@ -309,7 +309,7 @@ async function consume(this: WebSocket, opts: EventOpts) {
|
||||
|
||||
if(event === "GUILD_MEMBER_ADD") {
|
||||
if ((data as PublicMember).roles === undefined || (data as PublicMember).roles === null) {
|
||||
console.log(bgRedBright("[Gateway]"), "[GUILD_MEMBER_ADD] roles is undefined, setting to empty array!");
|
||||
console.log(bgRedBright("[Gateway]"), "[GUILD_MEMBER_ADD] roles is undefined, setting to empty array!", opts.origin ?? "(Event origin not defined)", data);
|
||||
(data as PublicMember).roles = [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user