mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-18 08:44:12 +02:00
refactor: run prettier
This commit is contained in:
parent
5793bbb461
commit
e6b1463a1a
@ -30,13 +30,11 @@ export class VerifyTimeout extends ScheduledTask {
|
|||||||
|
|
||||||
public async run(payload: { channelId: string; userId: string }) {
|
public async run(payload: { channelId: string; userId: string }) {
|
||||||
// Get the guild where the user is in
|
// Get the guild where the user is in
|
||||||
let channel = this.container.client.channels.cache.get(
|
let channel = this.container.client.channels.cache.get(payload.channelId);
|
||||||
payload.channelId,
|
|
||||||
);
|
|
||||||
if (channel === undefined) {
|
if (channel === undefined) {
|
||||||
const channelFetch = await this.container.client.channels.fetch(
|
const channelFetch = await this.container.client.channels
|
||||||
payload.channelId,
|
.fetch(payload.channelId)
|
||||||
).catch(() => null);
|
.catch(() => null);
|
||||||
if (channelFetch === null) {
|
if (channelFetch === null) {
|
||||||
this.container.logger.error('verifyTimeout: Channel not found!');
|
this.container.logger.error('verifyTimeout: Channel not found!');
|
||||||
return;
|
return;
|
||||||
@ -46,7 +44,9 @@ export class VerifyTimeout extends ScheduledTask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (channel.type !== ChannelType.GuildVoice) {
|
if (channel.type !== ChannelType.GuildVoice) {
|
||||||
this.container.logger.error('verifyTimeout: Channel is not a voice channel!');
|
this.container.logger.error(
|
||||||
|
'verifyTimeout: Channel is not a voice channel!',
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,9 @@ export class VerifyUnblock extends ScheduledTask {
|
|||||||
// Get the guild where the user is in
|
// Get the guild where the user is in
|
||||||
let guild = this.container.client.guilds.cache.get(payload.guildId);
|
let guild = this.container.client.guilds.cache.get(payload.guildId);
|
||||||
if (guild === undefined) {
|
if (guild === undefined) {
|
||||||
guild = await this.container.client.guilds.fetch(payload.guildId).catch(() => undefined);
|
guild = await this.container.client.guilds
|
||||||
|
.fetch(payload.guildId)
|
||||||
|
.catch(() => undefined);
|
||||||
if (guild === undefined) {
|
if (guild === undefined) {
|
||||||
this.container.logger.error('verifyUnblock: Guild not found!');
|
this.container.logger.error('verifyUnblock: Guild not found!');
|
||||||
return;
|
return;
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
|
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
|
||||||
"baseUrl": "src" /* Specify the base directory to resolve non-relative module names. */,
|
"baseUrl": "src" /* Specify the base directory to resolve non-relative module names. */,
|
||||||
"paths": {
|
"paths": {
|
||||||
"#utils/*": ["./utils/*"]
|
"#utils/*": ["./utils/*"],
|
||||||
} /* Specify a set of entries that re-map imports to additional lookup locations. */,
|
} /* Specify a set of entries that re-map imports to additional lookup locations. */,
|
||||||
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
||||||
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
||||||
@ -79,7 +79,7 @@
|
|||||||
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
||||||
|
|
||||||
/* Type Checking */
|
/* Type Checking */
|
||||||
"strict": true /* Enable all strict type-checking options. */
|
"strict": true /* Enable all strict type-checking options. */,
|
||||||
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
||||||
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
||||||
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
||||||
@ -103,5 +103,5 @@
|
|||||||
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
||||||
// "skipLibCheck": true /* Skip type checking all .d.ts files. */
|
// "skipLibCheck": true /* Skip type checking all .d.ts files. */
|
||||||
},
|
},
|
||||||
"include": ["src"]
|
"include": ["src"],
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user