Ask coding questions

← Back to all posts
Discord.js delete user message?
h
Squirrel777 (138)

So I have been making a Discord bot and it has some commands. You know how in Minecraft when you type a command lets say /tp @s ~ ~ ~. It executes the command but the command typed in doesn't show in the chat? Well, is there any way to do that in discord.js? Such as deleting the user's message?

Answered by 19wintersp (1121) [earned 5 cycles]
View Answer
Comments
hotnewtop
19wintersp (1121)

You can just delete the message if you have a handle to it.

Squirrel777 (138)

that's the documentation for discord.py, not discord.js! @19wintersp