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 22
22
SOFTWARE.
23
23
"""
24
24
25
- __version__ = '2.15.1 '
25
+ __version__ = '2.16.0 '
26
26
27
27
import asyncio
28
28
import logging
@@ -718,6 +718,24 @@ async def on_guild_channel_delete(self, channel):
718
718
return
719
719
720
720
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 )
721
739
722
740
async def on_message_delete (self , message ):
723
741
"""Support for deleting linked messages"""
You can’t perform that action at this time.
0 commit comments