From 8b061413ac8ed4b344825e27434f13bdab86e5c9 Mon Sep 17 00:00:00 2001 From: Dark <7890309+DarkView@users.noreply.github.com> Date: Mon, 1 Feb 2021 05:15:53 +0100 Subject: [PATCH] Allow !info to find vanity invites shorter than 6 characters --- backend/src/plugins/Utility/commands/InfoCmd.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility/commands/InfoCmd.ts b/backend/src/plugins/Utility/commands/InfoCmd.ts index 12af56e3..f19148ae 100644 --- a/backend/src/plugins/Utility/commands/InfoCmd.ts +++ b/backend/src/plugins/Utility/commands/InfoCmd.ts @@ -77,7 +77,7 @@ export const InfoCmd = utilityCmd({ } // 5. Invite - const inviteCode = await parseInviteCodeInput(value); + const inviteCode = parseInviteCodeInput(value) ?? value; if (inviteCode) { const invite = await resolveInvite(pluginData.client, inviteCode, true); if (invite) {