Skip to content

feat: add GraphQL queries and mutations for persisting member roles#171

Open
swayam-agrahari wants to merge 3 commits intoamfoss:developfrom
swayam-agrahari:add_member_roles
Open

feat: add GraphQL queries and mutations for persisting member roles#171
swayam-agrahari wants to merge 3 commits intoamfoss:developfrom
swayam-agrahari:add_member_roles

Conversation

@swayam-agrahari
Copy link
Contributor

@swayam-agrahari swayam-agrahari commented Mar 12, 2026

Overview

Adds backend support for persisting Discord member roles so that the AMD bot can restore them when a user rejoins the server.

Changes

  • Introduced MemberRoles storage for saving role IDs associated with a Discord user.
  • Added GraphQL operations:
    • save_member_roles mutation to store roles when a user leaves.
    • member_roles query to retrieve stored roles when a user rejoins.

These endpoints are protected with AuthGuard guards to ensure they are only accessible to the bot.

Related PR

This PR supports the role persistence feature implemented in amd:

Main PR

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.

1 participant