From debf0c2a82e1c5f3ba631a0791a5a3cb5c2d7ddb Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Mon, 26 Jul 2021 23:36:59 -0600 Subject: [PATCH] If the username is blank, assume the guild ID in the path is the username. --- src/main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.ts b/src/main.ts index 5dbb229..50da654 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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 if (!config.guilds[user]) { return { isValid: false, };