mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-18 05:14:13 +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 }) {
|
||||
// Get the guild where the user is in
|
||||
let channel = this.container.client.channels.cache.get(
|
||||
payload.channelId,
|
||||
);
|
||||
let channel = this.container.client.channels.cache.get(payload.channelId);
|
||||
if (channel === undefined) {
|
||||
const channelFetch = await this.container.client.channels.fetch(
|
||||
payload.channelId,
|
||||
).catch(() => null);
|
||||
const channelFetch = await this.container.client.channels
|
||||
.fetch(payload.channelId)
|
||||
.catch(() => null);
|
||||
if (channelFetch === null) {
|
||||
this.container.logger.error('verifyTimeout: Channel not found!');
|
||||
return;
|
||||
@ -46,7 +44,9 @@ export class VerifyTimeout extends ScheduledTask {
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,9 @@ export class VerifyUnblock extends ScheduledTask {
|
||||
// Get the guild where the user is in
|
||||
let guild = this.container.client.guilds.cache.get(payload.guildId);
|
||||
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) {
|
||||
this.container.logger.error('verifyUnblock: Guild not found!');
|
||||
return;
|
||||
|
@ -31,7 +31,7 @@
|
||||
// "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. */,
|
||||
"paths": {
|
||||
"#utils/*": ["./utils/*"]
|
||||
"#utils/*": ["./utils/*"],
|
||||
} /* 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. */
|
||||
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
||||
@ -79,7 +79,7 @@
|
||||
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
||||
|
||||
/* 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. */
|
||||
// "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. */
|
||||
@ -103,5 +103,5 @@
|
||||
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
||||
// "skipLibCheck": true /* Skip type checking all .d.ts files. */
|
||||
},
|
||||
"include": ["src"]
|
||||
"include": ["src"],
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user