Resolve eslint errors

This commit is contained in:
Rory& 2025-07-06 11:07:35 +02:00
parent 9e4a769d69
commit 199a518092
2 changed files with 3 additions and 6 deletions

View File

@ -161,7 +161,7 @@ export async function setupListener(this: WebSocket) {
// TODO: only subscribe for events that are in the connection intents
async function consume(this: WebSocket, opts: EventOpts) {
let { data, event } = opts;
const { data, event } = opts;
const id = data.id as string;
const permission = this.permissions[id] || new Permissions("ADMINISTRATOR"); // default permission for dm

View File

@ -74,12 +74,9 @@ export class UrlSignResult {
issuedAt: string;
expiresAt: string;
/*
* @param data {UrlSignResult}
*/
constructor(data: any) {
constructor(data: Partial<UrlSignResult>) {
for (const key in data) {
// @ts-ignore TS7053 - We dont care about string indexing a class
// @ts-expect-error TS7053 - We dont care about string indexing a class
this[key] = data[key];
}
}