Ask coding questions

← Back to all posts
How to Make Bot Reply
PARTHAGARWAL3

I want to make my bot reply ping the user when the user send message like When I send h!hi so it Reply Me by pinging like @xxx Hi. Like this can u tell me pls

Voters
PARTHAGARWAL3
Comments
hotnewtop
dfnk

Javascript or Python

PARTHAGARWAL3
SixBeeps

Discord.py or Discord.js?

PARTHAGARWAL3
SixBeeps

@PARTHAGARWAL3 The Message object has a function called reply() that will do what you're looking for.

PARTHAGARWAL3

@SixBeeps can u explain like a screenshot
Of both

SixBeeps

@PARTHAGARWAL3 Both? I only sent you one thing?

Also, the documentation I linked has some code examples already. Do you still need more examples?