1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-12-01 03:03:48 +00:00

discord: Minor comment fixes for components

This commit is contained in:
diamondburned 2021-05-29 21:32:05 -07:00
parent 694d6a2bba
commit b936d00ead

View file

@ -16,7 +16,7 @@ const (
ButtonComponentType ButtonComponentType
) )
// ComponentWrap wraps component for the purpose of JSON unmarshalling. // ComponentWrap wraps Component for the purpose of JSON unmarshalling.
// Type assetions should be made on Component to access the underlying data. // Type assetions should be made on Component to access the underlying data.
type ComponentWrap struct { type ComponentWrap struct {
Component Component Component Component
@ -76,7 +76,7 @@ type ActionRowComponent struct {
Components []Component `json:"components"` Components []Component `json:"components"`
} }
// Type implements the Component Data interface. // Type implements the Component interface.
func (ActionRowComponent) Type() ComponentType { func (ActionRowComponent) Type() ComponentType {
return ActionRowComponentType return ActionRowComponentType
} }
@ -146,7 +146,7 @@ type ButtonComponent struct {
Disabled bool `json:"disabled,omitempty"` Disabled bool `json:"disabled,omitempty"`
} }
// Type implements the Component Data interface. // Type implements the Component interface.
func (ButtonComponent) Type() ComponentType { func (ButtonComponent) Type() ComponentType {
return ButtonComponentType return ButtonComponentType
} }
@ -194,7 +194,7 @@ type UnknownComponent struct {
typ ComponentType typ ComponentType
} }
// Type implements the Component Data interface. // Type implements the Component interface.
func (u UnknownComponent) Type() ComponentType { func (u UnknownComponent) Type() ComponentType {
return u.typ return u.typ
} }