Disallow tags to be created with the same name as subcommands
This commit is contained in:
parent
989d909c2f
commit
1296ab6d39
|
@ -70,6 +70,10 @@ class Tags:
|
||||||
except discord.Forbidden:
|
except discord.Forbidden:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
if trigger.lower() in ['edit', 'delete', 'remove', 'stop']:
|
||||||
|
await ctx.send("You can't create a tag with {}!".format(trigger))
|
||||||
|
return
|
||||||
|
|
||||||
my_msg = await ctx.send("Alright, your new tag can be called with {}!\n\nWhat do you want to be displayed with this tag?".format(trigger))
|
my_msg = await ctx.send("Alright, your new tag can be called with {}!\n\nWhat do you want to be displayed with this tag?".format(trigger))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue