Skip to content

Commit aabc4a2

Browse files
committed
fix resolve
1 parent a9560d3 commit aabc4a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/events/button_click.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ async def on_button_click(self, inter: disnake.MessageInteraction):
1616
if inter.component.custom_id == "resolve_question_button":
1717
role = inter.guild.get_role(variables.helper)
1818
if (inter.channel.owner_id == inter.user.id) or (role in inter.user.roles):
19-
await inter.delete_original_message()
2019
if len(inter.channel.applied_tags.count) == 5:
2120
await inter.response.send_message("This post has too many tags and the resolved tag cannot be applied. Please remove the least important one to properly resolve it.")
2221
else:
2322
await inter.response.send_message("Done.")
23+
await inter.delete_original_message()
2424
await resolve_thread(inter.channel,inter.author)
2525
else:
2626
await inter.response.send_message(

modules/help_channels/commands/resolve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ async def resolve(self, inter: disnake.ApplicationCommandInteraction):
2121
return False
2222

2323
if (inter.channel.owner_id == inter.author.id) or (role in inter.author.roles) and channel in variables.help_channels:
24-
await inter.delete_original_message()
2524
if len(inter.channel.applied_tags) == 5:
2625
await inter.response.send_message("This post has too many tags and the resolved tag cannot be applied. Please remove the least important one to properly resolve it.")
2726
else:
2827
await inter.response.send_message("Done.")
28+
await inter.delete_original_message()
2929
await resolve_thread(inter.channel,inter.author)
3030
else:
3131
await inter.response.send_message("You aren't allowed to do this here.", ephemeral=True)

0 commit comments

Comments
 (0)