Showing 11 of 12 total issues
ArtibotConfigBuilder
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export class ArtibotConfigBuilder implements Partial<ArtibotConfig> {
/** Discord ID of the owner of the bot */
ownerId?: Snowflake;
/** ID of the test server */
testGuildId?: Snowflake;
Avoid deeply nested control flow statements. Open
Open
if (artibot.config.debug) log("TriggerHandler", (e as Error).message, "debug", true);
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
if (!message.content.startsWith(matchedPrefix) || message.author.bot) return;
Avoid too many return
statements within this function. Open
Open
if (!command) return;
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return;