1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Disallow tags to be created with the same name as subcommands

This commit is contained in:
Phxntxm 2017-03-27 17:48:27 -05:00
parent 989d909c2f
commit 1296ab6d39

View file

@ -70,6 +70,10 @@ class Tags:
except discord.Forbidden:
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))
try: