Suppress embeds in messages.
This commit is contained in:
@@ -96,14 +96,14 @@ class FjerkroaBot(commands.Bot):
|
||||
response.staff = f"User {message.user} try to hack the AI."
|
||||
if response.staff is not None and self.staff_channel is not None:
|
||||
async with self.staff_channel.typing():
|
||||
await self.staff_channel.send(response.staff)
|
||||
await self.staff_channel.send(response.staff, suppress_embeds=True)
|
||||
if not response.answer_needed:
|
||||
return
|
||||
if response.picture is not None:
|
||||
images = [discord.File(fp=await airesponder.draw(response.picture), filename="image.png")]
|
||||
await channel.send(response.answer, files=images)
|
||||
await channel.send(response.answer, files=images, suppress_embeds=True)
|
||||
else:
|
||||
await channel.send(response.answer)
|
||||
await channel.send(response.answer, suppress_embeds=True)
|
||||
|
||||
async def close(self):
|
||||
self.observer.stop()
|
||||
|
||||
Reference in New Issue
Block a user