how can a bot delete it's own messages ?

Posted in General by Mario Hennenberger Fri Dec 22 2017 07:59:43 GMT+0000 (UTC)·Viewed 92 times

the issue is simple, i have a dicordPHP bot with posts timebased warnings, but in quiet times this results in flood-ish apearance. so the idea is that the bot remebers the last message id and just delete it before sending another one. is that doable ? i have not found a response that contains the message id, so it's kind of tricky to delete it.
Markdown is allowed