Table of Contents

Method GetParameterName

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

GetParameterName(CommandParameter, CultureInfo, int)

Transforms the parameter name into it's snake_case equivalent.

public 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 System.Collections.IEnumerable, the index of the parameter. The value will be -1 if this parameter is not part of an System.Collections.IEnumerable.

Returns

string

The name that should be used for the interaction data.