Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR bumps the library to v3.1.0 and expands Discord gateway + interactions support by adding new packet decoders/events (guild updates/deletes and reaction add/remove), new interaction followup APIs, and an unban endpoint, along with updated example/test bots and documentation.
Changes:
- Added gateway packet decoding + event variants for
GUILD_UPDATE,GUILD_DELETE,MESSAGE_REACTION_ADD, andMESSAGE_REACTION_REMOVE. - Added HTTP + public APIs for deleting the original interaction response and creating/editing/deleting followup messages.
- Added HTTP + public API for unbanning a member; updated bots/README and bumped package metadata for the release.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| test/bots/normal_handler.gleam | Adds a manual test bot exercising the “normal” handler API and subject messaging. |
| test/bots/interaction_bot.gleam | Adds a manual test bot covering slash commands, modals, and followup interaction flows. |
| test/bots/example_bot.gleam | Simplifies the test bot startup path; adds !unban and reaction add/remove logging. |
| src/discord_gleam/ws/packets/message_reaction_remove.gleam | New decoder for MESSAGE_REACTION_REMOVE. |
| src/discord_gleam/ws/packets/message_reaction_add.gleam | New decoder for MESSAGE_REACTION_ADD. |
| src/discord_gleam/ws/packets/guild_update.gleam | New decoder for GUILD_UPDATE. |
| src/discord_gleam/ws/packets/guild_delete.gleam | New decoder for GUILD_DELETE. |
| src/discord_gleam/types/interaction.gleam | Exposes new interaction helpers: delete response + followup send/edit/delete. |
| src/discord_gleam/types/guild_member.gleam | Adjusts GuildMember fields and decoding for deaf/mute. |
| src/discord_gleam/http/interactions.gleam | Adds webhook endpoints for deleting originals and followup CRUD. |
| src/discord_gleam/http/guilds.gleam | Adds the HTTP unban endpoint. |
| src/discord_gleam/event_handler.gleam | Wires new packet types into the gateway packet decoding dispatch. |
| src/discord_gleam.gleam | Adds the public unban_member API and updates docs for moderation APIs. |
| README.md | Marks newly supported intents/events as implemented. |
| LICENSE | Updates copyright year. |
| gleam.toml | Bumps package version to 3.1.0 and updates the minimum Gleam version constraint. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.