We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1e175f commit f668fbcCopy full SHA for f668fbc
tux/cogs/admin/mail.py
@@ -38,6 +38,12 @@ def __init__(self, bot: commands.Bot):
38
async def register(
39
self, interaction: discord.Interaction, member: discord.Member, username: str
40
) -> None:
41
+ if not username.isalnum():
42
+ await interaction.response.send_message(
43
+ "Username must be alphanumeric and contain no spaces.", ephemeral=True
44
+ )
45
+ return
46
+
47
if interaction.guild:
48
mailbox_data = self.default_options.copy()
49
mailbox_data["local_part"] = username
0 commit comments