-
Notifications
You must be signed in to change notification settings - Fork 16
discordActivity
Javier Colombera edited this page Aug 14, 2023
·
3 revisions
The discordActivity lets you set the full presence of the bot. Discord.js setPresence()
Input | Type | Options | Description |
---|---|---|---|
msg.text |
String | Name of de Activity | |
msg.url |
String | Twitch/YouTube stream URL | |
msg.type |
Number | Competing = 5, Custom = 4, Watching = 3, Listening = 2, Streaming = 1, Playing = 0 |
Type of the activity |
msg.status |
String | online, idle, invisible or dnd | User status to be set |
let msg =
{
type: 1,
url: "https://www.twitch.tv/ibai",
text: "Batman",
status: "dnd"
};
let msg =
{
type: 10,
text: "Spotify",
status: "idle"
};
- Home
- Installation and setup
- Nodes
-
Examples
- Creating a thread
- Setting a bot status
- Reacting to a message
- Attach an image from disk
- Attach an image from buffer on an embed
- Attach an array of attachments
- Publish a new message on announcement channel
- Publish an existing message on announcement channel
- Set Role with discordPermission
- Remove Role with discordPermission
- Interaction Examples