Update leaver.py

This commit is contained in:
Ianardo DiCaprio 2019-07-20 02:12:05 +01:00 committed by GitHub
parent 34eb3816e3
commit 0671313e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,7 @@ class Leaver(Cog):
await self.config.guild(guild).channel.set(ctx.channel.id) await self.config.guild(guild).channel.set(ctx.channel.id)
await ctx.send("Channel set to " + ctx.channel.name) await ctx.send("Channel set to " + ctx.channel.name)
@commands.Cog.listener()
async def on_member_remove(self, member: discord.Member): async def on_member_remove(self, member: discord.Member):
guild = member.guild guild = member.guild
channel = await self.config.guild(guild).channel() channel = await self.config.guild(guild).channel()