transformApplicationCommandOptionChoiceToDiscordApplicationCommandOptionChoice
Documentation / @discordeno/bot / transformApplicationCommandOptionChoiceToDiscordApplicationCommandOptionChoice
Function: transformApplicationCommandOptionChoiceToDiscordApplicationCommandOptionChoice()
transformApplicationCommandOptionChoiceToDiscordApplicationCommandOptionChoice(
_bot
,payload
):DiscordApplicationCommandOptionChoice
Defined in: bot/src/transformers/reverse/applicationCommandOptionChoice.ts:3
Parameters
_bot
payload
{ name
: string
; nameLocalizations?
: null
| { bg?
: string
; cs?
: string
; da?
: string
; de?
: string
; el?
: string
; en-GB?
: string
; en-US?
: string
; es-419?
: string
; es-ES?
: string
; fi?
: string
; fr?
: string
; hi?
: string
; hr?
: string
; hu?
: string
; id?
: string
; it?
: string
; ja?
: string
; ko?
: string
; lt?
: string
; nl?
: string
; no?
: string
; pl?
: string
; pt-BR?
: string
; ro?
: string
; ru?
: string
; sv-SE?
: string
; th?
: string
; tr?
: string
; uk?
: string
; vi?
: string
; zh-CN?
: string
; zh-TW?
: string
; }; value
: string
| number
; } | ApplicationCommandOptionChoice