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

lib/discordgo: properly add ThreadMetadata #1691

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

l-zeuch
Copy link
Contributor

@l-zeuch l-zeuch commented Jun 30, 2024

Add the ThreadMetadata properly to discordgo.Channel, that is,
remove the flattened duplicate entries from said struct and instead keep
just discordgo.ThreadMetadata.

As a consequence, this cascades to dstate as well as common/templates,
which were modified to reflect that change; as an added bonus, this now
properly represents the channel structure as defined by Discord, rather
than a custom flattened one.

BREAKING CHANGE:

.Channel.{Locked,Archived} will be moved to .Channel.ThreadMetadata.*.
Migrate by adding that additional layer to your accessing of these
fields. Reports indicate this hasn't worked properly anyway, therefore
this breakage should be acceptable.

Signed-off-by: Luca Zeuch [email protected]

Add the `ThreadMetadata` properly to `discordgo.Channel`, that is,
remove the flattened duplicate entries from said struct and instead keep
just `discordgo.ThreadMetadata`.

As a consequence, this cascades to dstate as well as common/templates,
which were modified to reflect that change; as an added bonus, this now
properly represents the channel structure as defined by Discord, rather
than a custom flattened one.

BREAKING CHANGE:

`.Channel.{Locked,Archived}` will be moved to `.Channel.ThreadMetadata.*`.
Migrate by adding that additional layer to your accessing of these
fields. Reports indicate this hasn't worked properly anyway, therefore
this breakage should be acceptable.

Signed-off-by: Luca Zeuch <[email protected]>
@ashishjh-bst ashishjh-bst merged commit 07141c1 into botlabs-gg:dev Jul 3, 2024
1 check 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
2 participants