Skip to content

Commit 4d01e9d

Browse files
authored
Probably fix buttons in threads (#23)
1 parent 2a51f02 commit 4d01e9d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

slao_bot/cogs/raidreport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async def gear(self, interaction: discord.Interaction, button: discord.ui.Button
9494
# Add gear embeds if not exists
9595
embed = await cog.process_gear(report_id)
9696
embeds.append(embed)
97-
await interaction.message.edit(embeds=embeds)
97+
await interaction.edit_original_response(embeds=embeds)
9898

9999
# noinspection PyUnusedLocal
100100
@discord.ui.button(label='Bombs', style=discord.ButtonStyle.gray, custom_id='raid_view:bombs', emoji='💣')
@@ -122,7 +122,7 @@ async def bombs(self, interaction: discord.Interaction, button: discord.ui.Butto
122122
# Add gear embed if not exists
123123
embed = await cog.process_bombs(report_id)
124124
embeds.append(embed)
125-
await interaction.message.edit(embeds=embeds)
125+
await interaction.edit_original_response(embeds=embeds)
126126

127127
@staticmethod
128128
def _validate_interaction(interaction: discord.Interaction) -> Optional[str]:

0 commit comments

Comments
 (0)