Ephemeral message on invalid tag name
This commit is contained in:
parent
73e8cd87d1
commit
edab8c5e9b
1 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ class TagCog(Extension):
|
|||
await response.send("Content and name required", ephemeral=True)
|
||||
return
|
||||
elif not tag_name.match(name):
|
||||
await response.send("Tag name must only contain: [A-Za-z0-9_- ]")
|
||||
await response.send("Tag name must only contain: [A-Za-z0-9_- ]", ephemeral=True)
|
||||
return
|
||||
|
||||
tag = await Tag.find_one(q(guild=ctx.guild.id, name=name))
|
||||
|
@ -207,7 +207,7 @@ class TagCog(Extension):
|
|||
await response.send("Content and name required", ephemeral=True)
|
||||
return
|
||||
elif not tag_name.match(name):
|
||||
await response.send("Tag name must only contain: [A-Za-z0-9_- ]")
|
||||
await response.send("Tag name must only contain: [A-Za-z0-9_- ]", ephemeral=True)
|
||||
return
|
||||
|
||||
tag.content = re.sub(r"\\?([@<])", r"\\\g<1>", content)
|
||||
|
|
Loading…
Add table
Reference in a new issue