Replies: 2 comments 6 replies
-
You can fetch the dm channel then use the channel.messages.cache.filter(msg => {}) function to filter the messages to ones you have sent then you can loop through all of them and see if they are deletable and if they are then delete it. If you need an example just tell me and I'll give you an example |
Beta Was this translation helpful? Give feedback.
6 replies
-
Hmm, I suggest not to do this, you can just close DM (if the messages are not important). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do I fetch all my messages in a direct message and delete them all?
Beta Was this translation helpful? Give feedback.
All reactions