Channel.send for slash commands

Viewed 328

Im migrating my commands to slash variants and for some i need to send message to a different channel,i need the await channel.send() in nextcord slash,something like

channel = client.get_channel(862547191373496380)
await interaction.response.channel.send_message()
2 Answers

You can still use

await channel.send()

Note that this will not respond to the slash command, but rather, send a separate message in the specified channel.

for the response, you can simply do this:

await channel.response.send_message()
Related