Skip to content

Commit

Permalink
Change GuildPrivateThreadCreate to have NonInvitable field instead of…
Browse files Browse the repository at this point in the history
… Invitable (#379)

* fix: Invitable=false does nothing since it is annotated as omitempty.

* fix: Use pointer to bool for Invitable.
  • Loading branch information
myrkvi authored Aug 13, 2024
1 parent f97241f commit 4cd4fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/thread.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (GuildPublicThreadCreate) Type() ChannelType {
type GuildPrivateThreadCreate struct {
Name string `json:"name"`
AutoArchiveDuration AutoArchiveDuration `json:"auto_archive_duration,omitempty"`
Invitable bool `json:"invitable,omitempty"`
Invitable *bool `json:"invitable,omitempty"`
}

func (c GuildPrivateThreadCreate) MarshalJSON() ([]byte, error) {
Expand Down

0 comments on commit 4cd4fff

Please sign in to comment.