Answers for "get message author discord.py"

1

how to get the author on discord.py

ctx.author #Gets the author of a command
ctx.author.id #Gets the Discord ID of the author of a command
Posted by: Guest on March-29-2021
1

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
Posted by: Guest on March-08-2021
0

discord py fetch channel by id

channel = discord.utils.get(ctx.guild.channels, name=given_name)
channel_id = channel.id
Posted by: Guest on January-29-2021

Code answers related to "get message author discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language