Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #218

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Fix #218

wants to merge 1 commit into from

Conversation

ThibaultPointurier
Copy link
Collaborator

Description

Change in Channel Handling

This PR modifies the channel processing logic to include additional information in the payload. Previously, we were using message.payload as-is for normalizing the channel, but now we explicitly add the server ID (guild_id) to the normalized data.

Key Changes:

  • Previously, the channel was normalized using just message.payload.
  • Now, we explicitly add server_id: message.payload['guild_id'] to the data before normalizing.

Code Before:

final rawChannel =
    await marshaller.serializers.channels.normalize(message.payload);

Code After

final rawChannel =
    await marshaller.serializers.channels.normalize({
      'server_id': message.payload['guild_id'],
      ...message.payload
    });

This ensures that the server ID is always present during the channel normalization process.

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