Search code examples
nextcord

Channel.send for slash commands


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()

Solution

  • 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.