DiscordCards
Table of Contents
Methods
-
decodeCustomId()
: array<string|int, mixed>
-
encodeCustomId()
: string
-
toDiscordPayload()
: array<string|int, mixed>
-
convertButton()
: array<string|int, mixed>
-
convertTableToDiscord()
: string
decodeCustomId()
public
static decodeCustomId(string $customId) : array<string|int, mixed>
Parameters
-
$customId
: string
-
Return values
array<string|int, mixed>
encodeCustomId()
public
static encodeCustomId(string $actionId[, string|null $value = null ]) : string
Parameters
-
$actionId
: string
-
-
$value
: string|null
= null
-
toDiscordPayload()
public
static toDiscordPayload(Card $card) : array<string|int, mixed>
Parameters
-
$card
: Card
-
Return values
array<string|int, mixed>
private
static convertButton(Button $button) : array<string|int, mixed>
Parameters
-
$button
: Button
-
Return values
array<string|int, mixed>
convertTableToDiscord()
private
static convertTableToDiscord(Table $table) : string
Parameters
-
$table
: Table
-