Skip to content

discordActivity

Javier Colombera edited this page Aug 14, 2023 · 3 revisions

Introduction

The discordActivity lets you set the full presence of the bot. Discord.js setPresence()

Inputs

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

Examples

let msg = 
{
    type: 1,
    url: "https://www.twitch.tv/ibai",
    text: "Batman",
    status: "dnd"
};
let msg = 
{
    type: 10,
    text: "Spotify",
    status: "idle"
};