3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 08:15:03 +00:00

Allow !info to find vanity invites shorter than 6 characters (#149)

This commit is contained in:
Nils 2021-02-13 19:04:16 +01:00 committed by GitHub
parent 6539b7c8f1
commit 011390658e

View file

@ -82,7 +82,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 && userCfg.can_inviteinfo) {