Method GetParameterName
- 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
CommandParameterThe parameter being transformed.
culture
CultureInfoThe culture to use for the transformation.
arrayIndex
intIf 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.