Send guild name and icon of guild through Identify gateway opcode
These properties are mandatory as per the documentation: https://discord.com/developers/docs/resources/guild#guild-object
This commit is contained in:
parent
844f1de6aa
commit
7327669672
@ -295,6 +295,8 @@ export async function onIdentify(this: WebSocket, data: Payload) {
|
|||||||
...new ReadyGuildDTO(x).toJSON(),
|
...new ReadyGuildDTO(x).toJSON(),
|
||||||
guild_hashes: {},
|
guild_hashes: {},
|
||||||
joined_at: x.joined_at,
|
joined_at: x.joined_at,
|
||||||
|
name: x.name,
|
||||||
|
icon: x.icon,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
guild_experiments: [], // TODO
|
guild_experiments: [], // TODO
|
||||||
|
Loading…
x
Reference in New Issue
Block a user