Skip to content

Commit

Permalink
Support unarchiving threads
Browse files Browse the repository at this point in the history
Setting ChannelEdit.Archived = false is currently not possible since go
will treat a false as empty and will omit the property from the JSON
object.
  • Loading branch information
iokill committed Jun 18, 2022
1 parent e030c5f commit 7ace71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion structs.go
Expand Up @@ -370,7 +370,7 @@ type ChannelEdit struct {

// NOTE: threads only

Archived bool `json:"archived,omitempty"`
Archived bool `json:"archived,bool"`
AutoArchiveDuration int `json:"auto_archive_duration,omitempty"`
Locked bool `json:"locked,bool"`
Invitable bool `json:"invitable,omitempty"`
Expand Down

0 comments on commit 7ace71e

Please sign in to comment.