discord.com
search_messages
Input
query requiredWhat to search for. Discord's own search syntax works here, e.g. 'deploy', 'from:someone deploy', 'in:general has:link'.
guildId requiredServer id to search, e.g. from discord.com/list_servers.
limit optionalHow many hits to return, newest first. Discord serves 25 per page and this reads one page, so 25 is the maximum; total_results tells you how many exist.
Default: 25Output
count requiredquery requiredguildId requiredmessages requiredcomplete optionalTrue when every hit Discord reported was returned; false when more exist beyond this page.
total_results optionalDiscord's own count of matching messages, which can exceed the number returned.
