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 :: python list of list to list of string 
Python :: python input string 
Python :: python check array exists 
Python :: count number items in list python 
Python :: How to import HTML code into python with selenium webdriver 
Python :: yield python 
Python :: Example Layout using grid() in tkinter 
Python :: bitwise and python image 
Python :: pandas dataframe display cell size 
Python :: discord.py send message to user id 
Python :: how to print last element in a list python 
Python :: how to plot in python 
Python :: log log grid python 
Python :: tf.reduce_sum() 
Python :: how to input data to the list in pythion 
Python :: flask bootstrap 
Python :: jupyter notebook GET 500 
Python :: combine list of dicts 
Python :: funcions in python 
Python :: pandas df to list of dictionaries 
Python :: remove element from list by index 
Python :: how to take array as input in python 
Python :: Seaborn python for stacked column 
Python :: confusion matrix with labels sklearn 
Python :: python turtle shapes 
Python :: matplotlib plot in second axis 
Python :: how to print in double quotes in python 
Python :: how to use modulo in python 
Python :: Python List count() example 
Python :: how to get current google tab in python 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =