Added the required permission of kick_members to the notification change command
This commit is contained in:
parent
8e30e32f8b
commit
1c5bdaf5cc
2
bot.py
2
bot.py
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue