#Send a message in a certain channel outside a slash command
1 messages · Page 1 of 1 (latest)
You need to get the channel and then send the message to it
you can use
channel = bot.get_channel(channelid)
await channel.send("Message")```
ahh thanks!
is there any way to do it based on the channel name?
so for example general
yeah, you can use discord.utils.get for that: https://docs.pycord.dev/en/stable/api/utils.html#discord.utils.get
Pycord
thanks! thats exactly what i need
Done with your help thread?
Please close your own help thread by using </close:1009144375709814897> with @royal barn.
Backup bot: </solved:1109625445990793246> (or
.solved) with @atomic tide.