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