Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

Is it possible to log ID of a message bot is sending? #310

Open
KitsuneFM opened this issue Mar 1, 2019 · 1 comment
Open

Is it possible to log ID of a message bot is sending? #310

KitsuneFM opened this issue Mar 1, 2019 · 1 comment

Comments

@KitsuneFM
Copy link

I mean rawEvent.d.id logs ID of a previous message, that triggered the bot. But what if I want to log the message it's sending?

For a purpose of doing such command:

!mem - sends a meme and logs ID of a message
!remem - delete previous meme (it has to know the ID of the message it should delete, right?) and sends new meme

So is this possible?

@cloudrac3r
Copy link

.sendMessage(options, (err, res) => {
    // do something with res.id

Feel free to join the official server to ask more questions: https://discord.gg/0MvHMfHcTKVVmIGP

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants