new_embed: Makes a discord embed

Description Usage Arguments Value

View source: R/rest-api-tools.R

Description

for more info check https://discord.com/developers/docs/resources/channel#embed-object-embed-structure

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
new_embed(
  title = NULL,
  type = "rich",
  description = NULL,
  url = NULL,
  timestamp = NULL,
  color = NULL,
  footer = NULL,
  image = NULL,
  thumbnail = NULL,
  video = NULL,
  provider = NULL,
  author = NULL,
  fields = NULL
)

Arguments

title

title

type

(will be deprecated by discord)

description

description (main content)

url

url

timestamp

timestamp

color

side color

footer

footer

image

list with image props

thumbnail

thumbnail

video

list with image props

provider

provider

author

author

fields

list of fields

Value

the embed object with class discordr_embed


mone27/discordr documentation built on Dec. 21, 2021, 9 p.m.