#How do I compare the last sent message? The message also includes the user.id
12 messages · Page 1 of 1 (latest)
node 18.12.1
wdym compare
I want to check if this is the last message containing the user id.
You can use <Channel>.lastMessage to get the last message, and you should use user.user.id since the user is member
If you want you can use interaction.options.getUser('user') if you only need the user
The bot should respond to a message containing the user ID. With .lastmessage I only get the last message from that channel, right?
yeah .lastmessage gives you the last message sent to the channel
You can't really do that effectively
The best you can do is fetch the last 100 messages and filter them
Yes, but then I have all the messages that contain this ID. But I only want the last one xD