0
0
Fork 0

If the username is blank, assume the guild ID in the path is the username.

This commit is contained in:
Oliver-Akins 2021-07-26 23:36:59 -06:00
parent 18da6ddcc1
commit debf0c2a82

View file

@ -55,6 +55,9 @@ async function init() {
}; };
}; };
// Assume the user is the same as the guild ID
user = user || request.params.guild_id;
// Ensure the guild has a config // Ensure the guild has a config
if (!config.guilds[user]) { if (!config.guilds[user]) {
return { isValid: false, }; return { isValid: false, };