1
0
Fork 0
mirror of synced 2024-06-01 18:29:38 +12:00

Added the required permission of kick_members to the notification change command

This commit is contained in:
Phxntxm 2016-08-01 11:18:31 -05:00
parent 8e30e32f8b
commit 1c5bdaf5cc
2 changed files with 2 additions and 1 deletions

2
bot.py
View file

@ -63,7 +63,7 @@ async def on_member_remove(member):
channel = discord.utils.get(member.server.channels,id=server_notifications)
await bot.send_message(channel,
"{0} has left the server, I hope it wasn't because of something I said :c".format(member))
"{0} has left the server, I hope it wasn't because of something I said :c".format(member.display_name))
@bot.event

View file

@ -13,6 +13,7 @@ class Mod:
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True, no_pm=True)
@checks.customPermsOrRole(kick_members=True)
async def usernotify(self, ctx, on_off:str):
"""This command can be used to set whether or not you want user notificaitons to show
This will save what channel you run this command in, that will be the channel used to send the notification to