Skip to content

v3.1.0 - #32

Merged
cyteon merged 8 commits into
mainfrom
dev
Jul 5, 2026
Merged

v3.1.0#32
cyteon merged 8 commits into
mainfrom
dev

Conversation

@cyteon

@cyteon cyteon commented Jul 5, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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, and MESSAGE_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.

Comment thread src/discord_gleam/event_handler.gleam
Comment thread src/discord_gleam/ws/packets/message_reaction_add.gleam
Comment thread src/discord_gleam/ws/packets/message_reaction_remove.gleam
Comment thread src/discord_gleam/types/interaction.gleam Outdated
Comment thread src/discord_gleam/http/interactions.gleam Outdated
Comment thread src/discord_gleam.gleam
Comment thread src/discord_gleam.gleam
Comment thread src/discord_gleam.gleam
Comment thread src/discord_gleam/types/guild_member.gleam Outdated
Comment thread src/discord_gleam/types/guild_member.gleam Outdated
@cyteon
cyteon merged commit a101a75 into main Jul 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants