Here is my problem: I was searching for how to send a message on a chosen channel with a slash command, but I didn't find a way to realize this project, and maybe help me with the color too. There is a part of my code :
@bot.tree.command(guild= discord.Object(id=1127167530184740954), name="embed", description="Create an embed!")
async def cr_embed(interaction: discord.Interaction, title: str, description: str, colour_: int, field: str, value: str, channel_: discord.app_commands.AllChannels):
cr_embed = discord.Embed(title=title, description=description, colour=couleur)
cr_embed.add_field(name=field, value=value, inline=False)
await salon.send(embeds=[cr_embed], ephemeral=False)
If someone can help me about this that would be very helpfull ! Thanks !