Skip to content

Hide commands for Discord bot from text chat #21493

Answered by Gisgar3
BOGGLEBOY asked this question in General
Discussion options

You must be logged in to vote

In your code where it uses bot.deleteMessage(evt.d.id) , replace it with this:

bot.deleteMessage({
    channelID: channelID,
    messageID: evt.d.id
});

The documentation is very poor for the discord.io package since it is no longer being developed.

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants