mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-04 22:16:08 +00:00
feat: add DiscordDark and DIscordLight to EmbedColors enum
This commit is contained in:
parent
32c1df7a07
commit
39b6334f7e
@ -29,6 +29,8 @@ export enum EmbedColors {
|
||||
Greyple = 0x99aab5,
|
||||
DarkButNotBlack = 0x2c2f33,
|
||||
NotQuiteBlack = 0x23272a,
|
||||
DiscordDark = 0x313338,
|
||||
DiscordLight = 0xf9f9f9,
|
||||
}
|
||||
|
||||
export const DiscordEpoch = 1420070400000n;
|
||||
|
@ -307,20 +307,7 @@ export class Shard {
|
||||
if (data instanceof Buffer) {
|
||||
data = inflateSync(data);
|
||||
}
|
||||
/**
|
||||
* Idk why, but Bun sends this event when websocket connects.
|
||||
* MessageEvent {
|
||||
* type: "message",
|
||||
* data: "Already authenticated."
|
||||
* }
|
||||
*/
|
||||
if ((data as string).startsWith('{')) {
|
||||
data = JSON.parse(data as string);
|
||||
}
|
||||
|
||||
const packet = data as unknown as GatewayReceivePayload;
|
||||
|
||||
return this.onpacket(packet);
|
||||
return this.onpacket(JSON.parse(data as string));
|
||||
}
|
||||
|
||||
checkOffline(priority: number) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user