mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-12-02 11:52:56 +00:00
Compare commits
4 commits
68c2877780
...
ba9d20b34b
Author | SHA1 | Date | |
---|---|---|---|
ba9d20b34b | |||
abe3d2aa9b | |||
f4ec5bc80e | |||
c2657da488 |
|
@ -250,7 +250,7 @@ func (c *ContainerComponents) UnmarshalJSON(b []byte) error {
|
|||
//
|
||||
// - *ActionRowComponent
|
||||
// - *ButtonComponent
|
||||
// - *SelectComponent
|
||||
// - *StringSelectComponent
|
||||
// - *TextInputComponent
|
||||
// - *UserSelectComponent
|
||||
// - *RoleSelectComponent
|
||||
|
@ -581,7 +581,7 @@ func (b *ButtonComponent) UnmarshalJSON(j []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// StringSelectComponent is a clickable button that may be added to an interaction
|
||||
// StringSelectComponent is a dropdown menu that may be added to an interaction
|
||||
// response.
|
||||
type StringSelectComponent struct {
|
||||
// Options are the choices in the select.
|
||||
|
@ -605,7 +605,7 @@ type SelectOption struct {
|
|||
// Value is the internal value that is echoed back to the program. It's
|
||||
// similar to the custom ID. Max 100 characters.
|
||||
Value string `json:"value"`
|
||||
// Description is the additional description of an option.
|
||||
// Description is the additional description of an option. Max 100 characters.
|
||||
Description string `json:"description,omitempty"`
|
||||
// Emoji is the optional emoji object.
|
||||
Emoji *ComponentEmoji `json:"emoji,omitempty"`
|
||||
|
|
|
@ -25,7 +25,7 @@ const (
|
|||
IntentDirectMessages
|
||||
IntentDirectMessageReactions
|
||||
IntentDirectMessageTyping
|
||||
_
|
||||
IntentMessageContent
|
||||
IntentGuildScheduledEvents
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue