Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to delete most recent message in a channel #117

Open
ghost opened this issue Dec 17, 2017 · 2 comments
Open

How to delete most recent message in a channel #117

ghost opened this issue Dec 17, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 17, 2017

I don't understand the docs and I accidentally deleted the entire channel trying to figure this out and I still don't know how to do it. Please help

@ghost
Copy link
Author

ghost commented Dec 17, 2017

So far I have

var message = client.Messages.find(m => true);
client.Messages.deleteMessage(message);

But it doesn't delete the most recent message, it just deletes the first message since the bot came online and after that every time I try it it fails.

@ghost
Copy link
Author

ghost commented Dec 17, 2017

And I don't think it's specific to the channel

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

No branches or pull requests

0 participants