Skip to content

Commit

Permalink
docs: prefix with func name
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed Oct 6, 2024
1 parent 38c3e5e commit 5115429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 5115429

Please sign in to comment.