3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +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 93618e1bda
commit 8e812aab2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {