Remoed Defer for Generating
This commit is contained in:
3
main.py
3
main.py
@@ -731,7 +731,6 @@ class generate_report25(discord.ui.View):
|
|||||||
options=[]
|
options=[]
|
||||||
)
|
)
|
||||||
async def select_callback(self, select, interaction):
|
async def select_callback(self, select, interaction):
|
||||||
await interaction.response.defer(ephemeral=True)
|
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
title="Rekrutenbesichtigung: Erstellter Report",
|
title="Rekrutenbesichtigung: Erstellter Report",
|
||||||
color=discord.Colour.blurple(), # Pycord provides a class with default colors you can choose from
|
color=discord.Colour.blurple(), # Pycord provides a class with default colors you can choose from
|
||||||
@@ -750,7 +749,7 @@ class generate_report25(discord.ui.View):
|
|||||||
description = description + "Begründung von " + nick + ": " + vote[1] + "\n"
|
description = description + "Begründung von " + nick + ": " + vote[1] + "\n"
|
||||||
description = description + "\n\n"
|
description = description + "\n\n"
|
||||||
embed.description = description
|
embed.description = description
|
||||||
await interaction.followup.send(embed=embed, ephemeral=True)
|
await interaction.response.send_message(embed=embed, ephemeral=True)
|
||||||
|
|
||||||
|
|
||||||
class report_buttons(discord.ui.View):
|
class report_buttons(discord.ui.View):
|
||||||
|
|||||||
Reference in New Issue
Block a user