File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -157,20 +157,24 @@ async def _handle_join(self, member: discord.Member) -> None:
157
157
if not thread :
158
158
return
159
159
160
- category = await self .get_useable_appeal_category ()
160
+ if thread .channel .category .id in self .appeal_categories :
161
+ description = "The recipient has joined the appeals server."
162
+ else :
163
+ category = await self .get_useable_appeal_category ()
164
+ description = f"Thread moved to `{ category } ` category since recipient has joined the appeals server."
165
+ await thread .channel .move (
166
+ category = category ,
167
+ end = True ,
168
+ sync_permissions = True ,
169
+ reason = f"{ member } joined appeals server." ,
170
+ )
171
+
161
172
embed = discord .Embed (
162
- description = f"Moving thread to ` { category } ` category since recipient has joined the appeals server." ,
173
+ description = description ,
163
174
color = self .bot .mod_color
164
175
)
165
176
await thread .channel .send (embed = embed )
166
177
167
- await thread .channel .move (
168
- category = category ,
169
- end = True ,
170
- sync_permissions = True ,
171
- reason = f"{ member } joined appeals server." ,
172
- )
173
-
174
178
async def _handle_remove (self , member : discord .Member ) -> None :
175
179
"""
176
180
Notify if a member who is appealing leaves the appeals guild.
You can’t perform that action at this time.
0 commit comments