#How to search for messages

1 messages · Page 1 of 1 (latest)

lunar seal
#

I am trying to find a message with a specific mention in a specific channel, i looked into the guild.GetTextChannel(0).GetMessagesAsync() but that only loads the last x messages not searching for a message like you do in the ui

north rapids
#

Bots don't have access to search api.

#

GetMessagesAsync just fetches last X messages from channel
iirc 100 by default

lunar seal
#

Oke so i am going to have to pull in all the messages from the channel and then filter internally, well ok, thats not very efficient KEKWlaugh

north rapids
#

¯_(ツ)_/¯

#

discord API moment