diff --git a/src/builders/messages.ts b/src/builders/messages.ts index d0353a2..3b1531f 100644 --- a/src/builders/messages.ts +++ b/src/builders/messages.ts @@ -459,7 +459,7 @@ const errorMessages = () => { }) ) - //ERROR NOD IN GUILD + //ERROR NOT IN GUILD messages.add(new api.ODMessage("opendiscord:error-not-in-guild")) messages.get("opendiscord:error-not-in-guild").workers.add( new api.ODWorker("opendiscord:error-not-in-guild",0,async (instance,params,source) => { diff --git a/src/core/api/modules/client.ts b/src/core/api/modules/client.ts index 646cd3a..d2e2868 100644 --- a/src/core/api/modules/client.ts +++ b/src/core/api/modules/client.ts @@ -68,7 +68,7 @@ export class ODClientManager { /**The main server of the bot. Provided by serverId in the config */ mainServer: discord.Guild|null = null - /**(❌ DO NOD OVERWRITE ❌) Internal Open Ticket function to continue the startup when the client is ready! */ + /**(❌ DO NOT OVERWRITE ❌) Internal Open Ticket function to continue the startup when the client is ready! */ readyListener: (() => Promise)|null = null /**The status manager is responsible for setting the bot status. */ activity: ODClientActivityManager @@ -1417,7 +1417,7 @@ export class ODTextCommandManager extends ODManager { tempContent = tempContent.substring(trueValue.length+1) }else if (option.required){ - //REQUIRED => ERROR IF NOD EXISTING + //REQUIRED => ERROR IF NOT EXISTING const invalidregex = /^[^ ]+/ const invalidRes = invalidregex.exec(tempContent) if (invalidRes) optionError("invalid_option",option,location,invalidRes[0],"boolean") @@ -1463,7 +1463,7 @@ export class ODTextCommandManager extends ODManager { }) } }else if (option.required){ - //REQUIRED => ERROR IF NOD EXISTING + //REQUIRED => ERROR IF NOT EXISTING const invalidRegex = /^[^ ]+/ const invalidRes = invalidRegex.exec(tempContent) if (invalidRes) optionError("invalid_option",option,location,invalidRes[0],"number_invalid") @@ -1489,7 +1489,7 @@ export class ODTextCommandManager extends ODManager { optionError("invalid_option",option,location,value,"string_choice") }else if (option.required && value === ""){ - //REQUIRED => ERROR IF NOD EXISTING + //REQUIRED => ERROR IF NOT EXISTING optionError("missing_option",option,location) }else{ @@ -1529,7 +1529,7 @@ export class ODTextCommandManager extends ODManager { }) } }else if (option.required){ - //REQUIRED => ERROR IF NOD EXISTING + //REQUIRED => ERROR IF NOT EXISTING optionError("missing_option",option,location) } } @@ -1566,7 +1566,7 @@ export class ODTextCommandManager extends ODManager { } } }else if (option.required){ - //REQUIRED => ERROR IF NOD EXISTING + //REQUIRED => ERROR IF NOT EXISTING const invalidRegex = /^[^ ]+/ const invalidRes = invalidRegex.exec(tempContent) if (invalidRes) optionError("invalid_option",option,location,invalidRes[0],"channel_not_found") @@ -1601,7 +1601,7 @@ export class ODTextCommandManager extends ODManager { } } }else if (option.required){ - //REQUIRED => ERROR IF NOD EXISTING + //REQUIRED => ERROR IF NOT EXISTING const invalidRegex = /^[^ ]+/ const invalidRes = invalidRegex.exec(tempContent) if (invalidRes) optionError("invalid_option",option,location,invalidRes[0],"role_not_found") @@ -1636,7 +1636,7 @@ export class ODTextCommandManager extends ODManager { } } }else if (option.required){ - //REQUIRED => ERROR IF NOD EXISTING + //REQUIRED => ERROR IF NOT EXISTING const invalidRegex = /^[^ ]+/ const invalidRes = invalidRegex.exec(tempContent) if (invalidRes) optionError("invalid_option",option,location,invalidRes[0],"member_not_found") @@ -1667,7 +1667,7 @@ export class ODTextCommandManager extends ODManager { optionError("invalid_option",option,location,value,"user_not_found") } }else if (option.required){ - //REQUIRED => ERROR IF NOD EXISTING + //REQUIRED => ERROR IF NOT EXISTING const invalidRegex = /^[^ ]+/ const invalidRes = invalidRegex.exec(tempContent) if (invalidRes) optionError("invalid_option",option,location,invalidRes[0],"user_not_found") diff --git a/src/core/startup/init.ts b/src/core/startup/init.ts index bd39e7b..d1e5958 100644 --- a/src/core/startup/init.ts +++ b/src/core/startup/init.ts @@ -133,7 +133,7 @@ export class ODVersionMigration { this.#func = func this.#afterInitFunc = afterInitFunc } - /**Run this version migration as a plugin. Returns `false` when someting goes wrong. */ + /**Run this version migration as a plugin. Returns `false` when something goes wrong. */ async migrate(): Promise { try{ await this.#func() @@ -142,7 +142,7 @@ export class ODVersionMigration { return false } } - /**Run this version migration as a plugin. Returns `false` when someting goes wrong. */ + /**Run this version migration as a plugin (after other plugins have loaded). Returns `false` when something goes wrong. */ async migrateAfterInit(): Promise { try{ await this.#afterInitFunc()