mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-05 06:26: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,
|
Greyple = 0x99aab5,
|
||||||
DarkButNotBlack = 0x2c2f33,
|
DarkButNotBlack = 0x2c2f33,
|
||||||
NotQuiteBlack = 0x23272a,
|
NotQuiteBlack = 0x23272a,
|
||||||
|
DiscordDark = 0x313338,
|
||||||
|
DiscordLight = 0xf9f9f9,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const DiscordEpoch = 1420070400000n;
|
export const DiscordEpoch = 1420070400000n;
|
||||||
|
@ -307,20 +307,7 @@ export class Shard {
|
|||||||
if (data instanceof Buffer) {
|
if (data instanceof Buffer) {
|
||||||
data = inflateSync(data);
|
data = inflateSync(data);
|
||||||
}
|
}
|
||||||
/**
|
return this.onpacket(JSON.parse(data as string));
|
||||||
* 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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
checkOffline(priority: number) {
|
checkOffline(priority: number) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user