embeds: Embed content with a message

View source: R/webhook.R

embedsR Documentation

Embed content with a message

Description

Multiple images and other content can be embedded in the same message, which is why there's not just one big "embed image" that returns the correct structure.

Usage

embeds(description = NULL, ...)

embed_image(url, title = NULL)

Arguments

description

Optional: Character string to use as description.

...

Embedded content, i.e. embed_image() objects.

url

An image URL to embed.

title

Title to be displayed above image.

Examples

## Not run: 
embeds = embeds(
  description = "Just another mtcars",
  embed_image(url = "https://i.imgur.com/TUdNWOW.png", title = "vroom")
)

## End(Not run)

jemus42/discordiar documentation built on Feb. 2, 2024, 1:11 p.m.