Table of Contents

Method GetParameterName

Namespace
DSharpPlus.Commands.Processors.SlashCommands.NamingPolicies
Assembly
DSharpPlus.Commands.dll

GetParameterName(CommandParameter, CultureInfo, int)

Transforms the parameter name into the name that should be used for the interaction data.

string GetParameterName(CommandParameter parameter, CultureInfo culture, int arrayIndex)

Parameters

parameter CommandParameter

The parameter being transformed.

culture CultureInfo

The culture to use for the transformation.

arrayIndex int

If this parameter is part of an IEnumerable, the index of the parameter. The value will be -1 if this parameter is not part of an IEnumerable.

Returns

string

The name that should be used for the interaction data.