File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 2222SOFTWARE.
2323"""
2424
25- __version__ = '2.15.1 '
25+ __version__ = '2.16.0 '
2626
2727import asyncio
2828import logging
@@ -718,6 +718,24 @@ async def on_guild_channel_delete(self, channel):
718718 return
719719
720720 await thread .close (closer = mod , silent = True , delete_channel = False )
721+
722+ async def on_member_remove (self , member ):
723+ thread = await self .threads .find (recipient = member )
724+ if thread :
725+ em = discord .Embed (
726+ description = 'The recipient has left the server.' ,
727+ color = discord .Color .red ()
728+ )
729+ await thread .channel .send (embed = em )
730+
731+ async def on_member_join (self , member ):
732+ thread = await self .threads .find (recipient = member )
733+ if thread :
734+ em = discord .Embed (
735+ description = 'The recipient has joined the server.' ,
736+ color = self .mod_color
737+ )
738+ await thread .channel .send (embed = em )
721739
722740 async def on_message_delete (self , message ):
723741 """Support for deleting linked messages"""
You can’t perform that action at this time.
0 commit comments