how to send a message to a certain channel in an event discord.py code example
Example 1: how to send a message in a specific channel discord.py
channel = client.get_channel(12324234183172)
await channel.send('hello')
Example 2: send message in specific channel discord.py
"""SEND MESSAGE IN SPECIFIC CHANNEL"""
@client.command()
async def announce(ctx, channel: discord.TextChannel):
await channel.send("My text")