Search the entire guild for specific keywords #1598
Unanswered
LegendEvent
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I did find this function in the code, you can probably access it by this.client.channels.fetch().messages.search()
// or
this.client.channels.cache.get().messages.search() but if you want to use raw http requests {
"analytics_id": "", // String
"doing_deep_historical_index": false, // boolean
"members": [], // Array ( no idea what's inside from the 1 test I did )
"messages" : [] // Array of arrays ( [[{ base message data }], [{ base message data }]] )
"threads": [] // Array ( [{ base threads data }] )
"total_results": 122 // Number
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to use the search function available in the Discord client via code. I haven't found anything about this in the documentation. The only workaround I could think of is to search every channel in every guild for the keyword. Is there a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions