remove deprecated hints in presence payload

This commit is contained in:
hippoz 2023-10-01 18:40:39 +03:00
parent 3740d764a7
commit 08f82f5845
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED
4 changed files with 1 additions and 20 deletions

View file

@ -11,11 +11,7 @@ class Bridge {
intents: 0 | (1 << 0) | (1 << 9) | (1 << 15), // GUILDS | GUILD_MESSAGES | MESSAGE_CONTENT intents: 0 | (1 << 0) | (1 << 9) | (1 << 15), // GUILDS | GUILD_MESSAGES | MESSAGE_CONTENT
} }
); );
this.waffleClient = new WaffleClient(WAFFLE_TOKEN, { this.waffleClient = new WaffleClient(WAFFLE_TOKEN, {});
bridgesTo: "Discord Inc. (not affiliated)",
privacy: "https://discord.com/privacy",
terms: "https://discord.com/terms"
});
this.waffleChannelIdToDiscordChannelIdMap = new Map(); this.waffleChannelIdToDiscordChannelIdMap = new Map();
this.discordChannelIdToWaffleChannelIdMap = new Map(); this.discordChannelIdToWaffleChannelIdMap = new Map();

View file

@ -602,9 +602,6 @@ class PresenceStore extends Store {
// don't need to push the status, since we remove offline members from the presence list // don't need to push the status, since we remove offline members from the presence list
this.value.push({ this.value.push({
user: entry.user, user: entry.user,
bridgesTo: entry.bridgesTo,
privacy: entry.privacy,
terms: entry.terms
}); });
} }
}); });

View file

@ -167,9 +167,6 @@ export class GatewayClient {
lastAliveCheck: number; lastAliveCheck: number;
clientDispatchChannels: Set<string>; clientDispatchChannels: Set<string>;
messagesSinceLastCheck: number; messagesSinceLastCheck: number;
bridgesTo?: string;
privacy?: string;
terms?: string;
constructor(ws: WebSocket) { constructor(ws: WebSocket) {
this.ws = ws; this.ws = ws;
@ -179,9 +176,6 @@ export class GatewayClient {
this.lastAliveCheck = performance.now(); this.lastAliveCheck = performance.now();
this.clientDispatchChannels = new Set(); this.clientDispatchChannels = new Set();
this.messagesSinceLastCheck = 0; this.messagesSinceLastCheck = 0;
this.bridgesTo = undefined;
this.privacy = undefined;
this.terms = undefined;
gatewayClients.add(this); gatewayClients.add(this);
this.ws.on("close", this.handleClose.bind(this)); this.ws.on("close", this.handleClose.bind(this));
@ -243,9 +237,6 @@ export class GatewayClient {
avatar: this.user.avatar avatar: this.user.avatar
}, },
status, status,
bridgesTo: this.bridgesTo,
privacy: this.privacy,
terms: this.terms,
}; };
} }

View file

@ -6,8 +6,5 @@ export interface GatewayPresenceEntry {
id: number, id: number,
avatar: string | null avatar: string | null
}, },
bridgesTo?: string,
privacy?: string,
terms?: string,
status: GatewayPresenceStatus status: GatewayPresenceStatus
} }