1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-09-29 13:48:53 +00:00

discord: Add Invitable field for threads (#268)

This commit is contained in:
rigormorrtiss 2021-08-17 09:37:33 +04:00 committed by GitHub
parent fe1f7aa201
commit b253a5659b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -200,6 +200,9 @@ type ModifyChannelData struct {
// Locked specifies whether the thread is locked. When a thread is locked,
// only users with MANAGE_THREADS can unarchive it.
Locked option.Bool `json:"locked,omitempty"`
// Invitable specifies whether non-moderators can add other
// non-moderators to a thread; only available on private threads
Invitable option.Bool `json:"invitable,omitempty"`
AuditLogReason `json:"-"`
}
@ -374,6 +377,11 @@ type StartThreadData struct {
//
// This field can only be used when starting a thread without a message
Type discord.ChannelType `json:"type,omitempty"` // we can omit, since thread types start at 10
// Invitable specifies whether non-moderators can add other
// non-moderators to a thread; only available on private threads.
//
// This field can only be used when starting a thread without a message
Invitable bool `json:"invitable,omitempty"`
AuditLogReason `json:"-"`
}

View file

@ -254,7 +254,10 @@ type ThreadMetadata struct {
ArchiveTimestamp Timestamp `json:"archive_timestamp"`
// Locked specifies whether the thread is locked; when a thread is locked,
// only users with MANAGE_THREADS can unarchive it.
Locked bool `json:"locked,omitempty"`
Locked bool `json:"locked"`
// Invitable specifies whether non-moderators can add other
// non-moderators to a thread; only available on private threads.
Invitable bool `json:"invitable,omitempty"`
}
type ThreadMember struct {