forked from Galactic/galactic-bot
misc fixes & cleanup
This commit is contained in:
parent
36b66fb907
commit
ae8ce8eead
@ -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.
|
||||
|
||||
|
@ -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];
|
||||
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user