Skip to content

Commit

Permalink
fix(admin): confirmation view in /admin update send
Browse files Browse the repository at this point in the history
  • Loading branch information
ZRunner committed Aug 9, 2024
1 parent 54f78e8 commit 0fab908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/admin/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async def send_updates(self, interaction: discord.Interaction):
await interaction.response.defer()
for i, lang in enumerate(self.update.keys()):
text += f"\n{lang}:```\n{self.update.get(lang)}\n```"
await interaction.followup.send(text, view=confirm_view if i == len(self.update)-1 else None)
await interaction.followup.send(text, view=confirm_view if i == len(self.update)-1 else discord.utils.MISSING)
text = ''
else:
text += "\n"+"\n".join([f"{lang}:\n```\n{value}\n```" for lang, value in self.update.items()])
Expand Down

0 comments on commit 0fab908

Please sign in to comment.