#I want to send a Message through an interaction in a certain channel but dont know how
1 messages · Page 1 of 1 (latest)
the message does not arrive
can you show what you ran?
applicationschannel = interaction.guild.get_channel(1021410863766319175) # applicationschannel id
await interaction.response.send_message("message has been sent", ephemeral=True) # command response
applicationschannel.send # send embed
last line
or what do you mean?
...as in, you know how you normally use ctx.send or channel.send?
ah yes but i dont know to use it in interaction
you can ignore the interaction, you already responded to it
oh
the point is that ctx.send is actually ctx.message.channel.send; it's always a channel that you use
so all you need is a channel object
hence you need await applicationschannel.send(...)
allgood
i have another question
go on
how do i do that the button still works after i restarted the bot?
Here's the persistent example.
i think i have all conditions