Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

discord.py mention user

#discord.py rewrite
#python 3+
bot.command(name='pingme', help='pings the author of the message')
async def pingme(ctx):
	#to get a member from a 'ctx' object is ctx.author
	#from there its .mention will mention (ping) the user
	#also there are others like .id
	await ctx.send(ctx.author.mention)
Comment

python discord mention user

await message.channel.send(message.author.mention)
Comment

how to mention someone discord.py

myid = '<@201909896357216256>'
await client.send_message(message.channel, ' : %s is the best ' % myid)
Comment

PREVIOUS NEXT
Code Example
Python :: split long list into chunks of 100 
Python :: python3 list directories 
Python :: str in python 
Python :: Tree: Inorder Traversal 
Python :: stdin and stdout in python 
Python :: python list remove all elements 
Python :: list unpacking python 
Python :: reduce () in python 
Python :: python check for exception 
Python :: print dataframe name python 
Python :: sign python 
Python :: how to print even numbers in python 
Python :: how to send a command to cmd using python 
Python :: get length from variable python 
Python :: how to get data from django session 
Python :: change value of column in pandas 
Python :: pine script to python 
Python :: django template filter 
Python :: step function 
Python :: python if syntax 
Python :: naive bayes implementation in python 
Python :: how to make a calcukatir un python 
Python :: casefold in python 
Python :: python array drop item 
Python :: label encoding of a column in python 
Python :: pytube3 
Python :: text to png python 
Python :: comparing values in python 
Python :: combine for and if python 
Python :: get the largest of 2 strings python 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =