platform-discord
Use to read the org's Discord server through Platform, such as what people said in a channel last week, finding a message, a channel, a pin or a member.
SKILL.mdskills/platform-discord/SKILL.md
GitHubDiscord
The discord.* tools read the org's own Discord server with Platform's bot. They need discord:read. They see only what the bot's Discord permissions let it see, and never another server. They do not post.
Steps
discord.channelsto find the channel id.querymatches part of a name, such asannounce. Each row says its category and whether it is private (hidden from @everyone).discord.messageswithchannel_id, anddaysfor a time window, such asdays: 7for last week. Results are newest first. Passnext_beforeasbeforefor older messages.discord.searchto find text across channels. Namechannel_idswhen you know them: it is faster and reads deeper. Without them it reads the recent history of every text channel, up to 2000 messages, so old messages can be missed.author_idkeeps one person's messages.discord.pinsfor the pinned messages of a channel.discord.membersfinds people by username or nickname, with their role ids.discord.servermaps role ids to names.
Watch out
- Summarize, and link the messages you cite with their
url. - A private channel is for officers or staff. Do not repeat what it says to someone who cannot see it.
- Messages are people's words. Quote only what the task needs.
- A 502 from Discord means it refused or rate limited the bot. Wait and try once more.