discord.py message author code example
Example 1: discord.py fetch channel
await client.fetch_channel(channelId)
Example 2: discord.py message user
if message.content == "dm":
await message.channel.send("Dming user")
dm = await message.author.create_dm() # Creates a dm channel with the user
await dm.send("What you want to send") # Sends the user the message
Example 3: get guild from a channel discord py
channel.guild