mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-12-02 20:02:53 +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
|
// - *ActionRowComponent
|
||||||
// - *ButtonComponent
|
// - *ButtonComponent
|
||||||
// - *SelectComponent
|
// - *StringSelectComponent
|
||||||
// - *TextInputComponent
|
// - *TextInputComponent
|
||||||
// - *UserSelectComponent
|
// - *UserSelectComponent
|
||||||
// - *RoleSelectComponent
|
// - *RoleSelectComponent
|
||||||
|
@ -581,7 +581,7 @@ func (b *ButtonComponent) UnmarshalJSON(j []byte) error {
|
||||||
return nil
|
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.
|
// response.
|
||||||
type StringSelectComponent struct {
|
type StringSelectComponent struct {
|
||||||
// Options are the choices in the select.
|
// 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
|
// Value is the internal value that is echoed back to the program. It's
|
||||||
// similar to the custom ID. Max 100 characters.
|
// similar to the custom ID. Max 100 characters.
|
||||||
Value string `json:"value"`
|
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"`
|
Description string `json:"description,omitempty"`
|
||||||
// Emoji is the optional emoji object.
|
// Emoji is the optional emoji object.
|
||||||
Emoji *ComponentEmoji `json:"emoji,omitempty"`
|
Emoji *ComponentEmoji `json:"emoji,omitempty"`
|
||||||
|
|
|
@ -25,7 +25,7 @@ const (
|
||||||
IntentDirectMessages
|
IntentDirectMessages
|
||||||
IntentDirectMessageReactions
|
IntentDirectMessageReactions
|
||||||
IntentDirectMessageTyping
|
IntentDirectMessageTyping
|
||||||
_
|
IntentMessageContent
|
||||||
IntentGuildScheduledEvents
|
IntentGuildScheduledEvents
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue