properly mark unused params

This commit is contained in:
Rory& committed 2026-03-14 03:59:28 +01:00
1 parent 27cb026967
commit a451f92e67
27 files changed
+78 -39

No files matched your search

-5
View File
@@ -64,11 +64,6 @@ import { ChannelType, DefaultUserGuildSettings, DMChannel, IdentifySchema, Priva
// TODO: user sharding
// TODO: check privileged intents, if defined in the config
function logAuth(message: string) {
if (process.env.LOG_AUTH != "true") return;
console.log(`[Gateway/Auth] ${message}`);
}
export async function onIdentify(this: WebSocket, data: Payload) {
const totalSw = Stopwatch.startNew();
const taskSw = Stopwatch.startNew();
+1
View File
@@ -158,6 +158,7 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) {
const startTime = Date.now();
// TODO: check data
check.call(this, LazyRequestSchema, d);
// noinspection JSUnusedLocalSymbols - TODO: implement typing/activities subscriptions
const { guild_id, typing, channels, activities, members } = d as LazyRequestSchema;
if (members) {
+1
View File
@@ -21,6 +21,7 @@ export async function onStreamDelete(this: WebSocket, data: Payload) {
return this.close(4000, "Invalid stream key");
}
// noinspection JSUnusedLocalSymbols - TODO: what is type here?
const { userId, channelId, guildId, type } = parsedKey;
// when a user selects to stop watching another user stream, this event gets triggered