mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 08:43:02 +00:00
properly mark unused params
This commit is contained in:
1 parent
27cb026967
commit
a451f92e67
27 files changed
+78
-39
No files matched your search
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user