token_set: Set a bot token

Description Usage Arguments Details Author(s)

View source: R/token.R

Description

Sets the bot token to be used in API calls that require authorization.

Usage

1
token_set(token)

Arguments

token

Character vector. The bot token to set.

Details

The token can also be set by defining the DISCORD_BOT_TOKEN environment variable. This environment variable is read when the package is first loaded.

Author(s)

Erez Shomron


eshom/discordR documentation built on Dec. 20, 2021, 6:37 a.m.