From b936d00ead4ad8556596eb124f01ef7913a3ad65 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sat, 29 May 2021 21:32:05 -0700 Subject: [PATCH] discord: Minor comment fixes for components --- discord/component.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/discord/component.go b/discord/component.go index 5f25acb..684c2b7 100644 --- a/discord/component.go +++ b/discord/component.go @@ -16,7 +16,7 @@ const ( 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 ComponentWrap struct { Component Component @@ -76,7 +76,7 @@ type ActionRowComponent struct { Components []Component `json:"components"` } -// Type implements the Component Data interface. +// Type implements the Component interface. func (ActionRowComponent) Type() ComponentType { return ActionRowComponentType } @@ -146,7 +146,7 @@ type ButtonComponent struct { Disabled bool `json:"disabled,omitempty"` } -// Type implements the Component Data interface. +// Type implements the Component interface. func (ButtonComponent) Type() ComponentType { return ButtonComponentType } @@ -194,7 +194,7 @@ type UnknownComponent struct { typ ComponentType } -// Type implements the Component Data interface. +// Type implements the Component interface. func (u UnknownComponent) Type() ComponentType { return u.typ }