bot icon indicating copy to clipboard operation
bot copied to clipboard

Discord invites with `https://` prefix are considered invalid.

Open lxnn opened this issue 3 years ago • 3 comments

Currently, when you try to add an invite link to the invites whitelist, it is rejected if the given link begins with https://, http://, etc.

For example:

!whitelist add guild_invite https://discord.gg/aMZJ7NAr R Programming language

This results in a BadArgument error.

Fixing this should just be a matter of adding the prefix to the regex pattern.

Relevant parts of the code:

lxnn avatar Nov 11 '21 07:11 lxnn