Replies: 1 comment 3 replies
-
You can use bot.wait_for I presume, check if the referenced message's author is your bot, in that case, the bot is replying to your command. You can then filter for embeds from the message object you get through if message.embeds:
embed = message.embeds[0]
title, description = embed.title, embed.description
else:
content = message.content discord.Message docs. discord.Message.reference to check if the message is a reply, and discord.Message.embeds to get a list of embeds. @dolfies I couldn't find anything describing what happens when the slash command is awaited in the docs, ie, the docs don't describe what happens when you await a slash command, thanks :) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, I have a custom function in a Bot client class (not on_message). It runs slash commands every 30 minutes. The bot respons as shown in picture
How to store response in variable. Bot can return either normal message or embed
I don't think it's doable simply. I think i need to place a code in on_message, filter on_message messages by channel and check if bot replied to this particular account
Beta Was this translation helpful? Give feedback.
All reactions