mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +01:00
Invisible defers
This commit is contained in:
parent
6db495139b
commit
237dbd57dd
1 changed files with 3 additions and 3 deletions
|
@ -1049,7 +1049,7 @@ class OtherCog(commands.Cog):
|
||||||
emoji=discord.PartialEmoji.from_str("\U000023ed\U0000fe0f")
|
emoji=discord.PartialEmoji.from_str("\U000023ed\U0000fe0f")
|
||||||
)
|
)
|
||||||
async def new_quote(self, _, interaction: discord.Interaction):
|
async def new_quote(self, _, interaction: discord.Interaction):
|
||||||
await interaction.response.defer()
|
await interaction.response.defer(invisible=True)
|
||||||
async with self:
|
async with self:
|
||||||
new_result = await get_quote()
|
new_result = await get_quote()
|
||||||
if isinstance(new_result, discord.File):
|
if isinstance(new_result, discord.File):
|
||||||
|
@ -1063,7 +1063,7 @@ class OtherCog(commands.Cog):
|
||||||
emoji=discord.PartialEmoji.from_str("\U0001f504")
|
emoji=discord.PartialEmoji.from_str("\U0001f504")
|
||||||
)
|
)
|
||||||
async def regenerate(self, _, interaction: discord.Interaction):
|
async def regenerate(self, _, interaction: discord.Interaction):
|
||||||
await interaction.response.defer()
|
await interaction.response.defer(invisible=True)
|
||||||
async with self:
|
async with self:
|
||||||
message = await interaction.original_response()
|
message = await interaction.original_response()
|
||||||
if "\U00002b50" in [x.emoji for x in message.reactions]:
|
if "\U00002b50" in [x.emoji for x in message.reactions]:
|
||||||
|
@ -1084,7 +1084,7 @@ class OtherCog(commands.Cog):
|
||||||
emoji="\N{wastebasket}\U0000fe0f"
|
emoji="\N{wastebasket}\U0000fe0f"
|
||||||
)
|
)
|
||||||
async def delete(self, _, interaction: discord.Interaction):
|
async def delete(self, _, interaction: discord.Interaction):
|
||||||
await interaction.response.defer()
|
await interaction.response.defer(invisible=True)
|
||||||
await interaction.delete_original_response()
|
await interaction.delete_original_response()
|
||||||
self.stop()
|
self.stop()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue