channel.history discord py code example
Example 1: on message discord py
@bot.event
async def on_message(message):
if message.content == "pong":
await message.channel.send('ping')
Example 2: discord.py fetch channel
await client.fetch_channel(channelId)
Example 3: discord py get all channels in guild
guild.text_channels