misc fixes & cleanup

This commit is contained in:
Erik 2022-07-13 16:34:26 +03:00
parent 36b66fb907
commit ae8ce8eead
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
3 changed files with 9 additions and 2 deletions

View File

@ -8,6 +8,9 @@ This command can only be run in servers.
[O_COMMANDHANDLER_TYPEINTEGER]
The command option {option} requires an integer between `{min}` and `{max}`.
[O_COMMANDHANDLER_TYPETIME]
The command option {option} requires a timestring (e.g. 5 min, 2w).
[O_COMMANDHANDLER_TYPEUSERS]
The command option {option} requires users.

View File

@ -31,7 +31,11 @@ class LocaleLoader {
if (!this.languages[language]) return `< Missing Locale: ${language} >`;
let string = this.languages[language][index];
if (!string) return `< Missing Locale Index: ${language}.${index} >`;
if (!string) {
const str = `< Missing Locale Index: ${language}.${index} >`;
this.logger.error(str);
return str;
}
for (const emoji of Object.keys(Emojis)) parameters[`emoji_${emoji}`] = Emojis[emoji];

View File

@ -202,7 +202,7 @@ class CommandHandler extends Observer {
// });
const newOption = matched.clone(option.value);
const parsed = await this._parseOption(interaction, newOption);
console.log(parsed);
// console.log(parsed);
if(parsed.error) {
error = {