mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-17 20:32:48 +00:00
discord: Add Invitable field for threads (#268)
This commit is contained in:
parent
fe1f7aa201
commit
b253a5659b
|
@ -200,6 +200,9 @@ type ModifyChannelData struct {
|
||||||
// Locked specifies whether the thread is locked. When a thread is locked,
|
// Locked specifies whether the thread is locked. When a thread is locked,
|
||||||
// only users with MANAGE_THREADS can unarchive it.
|
// only users with MANAGE_THREADS can unarchive it.
|
||||||
Locked option.Bool `json:"locked,omitempty"`
|
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:"-"`
|
AuditLogReason `json:"-"`
|
||||||
}
|
}
|
||||||
|
@ -374,6 +377,11 @@ type StartThreadData struct {
|
||||||
//
|
//
|
||||||
// This field can only be used when starting a thread without a message
|
// 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
|
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:"-"`
|
AuditLogReason `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -254,7 +254,10 @@ type ThreadMetadata struct {
|
||||||
ArchiveTimestamp Timestamp `json:"archive_timestamp"`
|
ArchiveTimestamp Timestamp `json:"archive_timestamp"`
|
||||||
// Locked specifies whether the thread is locked; when a thread is locked,
|
// Locked specifies whether the thread is locked; when a thread is locked,
|
||||||
// only users with MANAGE_THREADS can unarchive it.
|
// 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 {
|
type ThreadMember struct {
|
||||||
|
|
Loading…
Reference in a new issue