If the username is blank, assume the guild ID in the path is the username.
This commit is contained in:
parent
18da6ddcc1
commit
debf0c2a82
1 changed files with 3 additions and 0 deletions
|
|
@ -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, };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue