forked from botlabs-gg/yagpdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/discordgo: properly add ThreadMetadata
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 <l-zeuch@email.de>
- Loading branch information
Showing
4 changed files
with
9 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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