From 5115429e06113353b32aae3de75294cdc1d8dfc3 Mon Sep 17 00:00:00 2001 From: Fedor Lapshin Date: Sun, 6 Oct 2024 19:39:40 +0300 Subject: [PATCH] docs: prefix with func name --- interactions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interactions.go b/interactions.go index cefeb347b..aa2e159ec 100644 --- a/interactions.go +++ b/interactions.go @@ -326,7 +326,7 @@ type ApplicationCommandInteractionData struct { TargetID string `json:"target_id"` } -// Get the interaction data option by name +// GetOption finds and returns an application command option by its name. func (d ApplicationCommandInteractionData) GetOption(name string) (option *ApplicationCommandInteractionDataOption) { for _, opt := range d.Options { if opt.Name == name { @@ -420,7 +420,7 @@ type ApplicationCommandInteractionDataOption struct { Focused bool `json:"focused,omitempty"` } -// Get the interaction data option by name +// GetOption finds and returns an application command option by its name. func (o ApplicationCommandInteractionDataOption) GetOption(name string) (option *ApplicationCommandInteractionDataOption) { for _, opt := range o.Options { if opt.Name == name {