Value from id functions

dc_channel_from_id(id)#

Returns a Channel value from the specified channel id, or null if the channel was not found.

dc_server_from_id(id)#

Returns a Server value from the specified server id, or null if the server was not found.

dc_emoji_from_id(id)#

Returns an Emoji value from the specified emoji id. This is only for custom emojis, since standard emojis are specified from the unicode emoji.

dc_sticker_from_id(id)#

Returns a Sticker value from the specified sticker id.

dc_role_from_id(id)#

Returns a Role value from the specified role id, or null if the role was not found.

dc_user_from_id(id)#

Blocking function

This function is blocking, meaning it can freeze the game. Use it in a task to avoid freezing your game.

Returns a User value from the specified role id, or null if the user was not found.

dc_message_from_id(id, channel)#

Blocking function

This function is blocking, meaning it can freeze the game. Use it in a task to avoid freezing your game.

Returns a Message value from the specified message id and channel, or null if the message was not found.

dc_webhook_from_id(id, token)#

Blocking function

This function is blocking, meaning it can freeze the game. Use it in a task to avoid freezing your game.

Returns a Webhook value from the specified webhook id and token, or null if the webhook was not found.

dc_webhook_from_url(url)#

Blocking function

This function is blocking, meaning it can freeze the game. Use it in a task to avoid freezing your game.

Returns a Webhook value from the specified webhook url, or null if the webhook was not found.