I have been coding my Discord bot using Discord.JS for about 2 months now and I\'ve just recently noticed that my bot isn\'t saying that it\'s playing what I\'m telling it.
.setGame()
is deprecated now but you could use .setPresence()
or you could use the .setActivity()
which is the same thing and format as the .setGame()
.
Ex.
const Discord = require('discord.js');
const bot = new Discord.Client();
bot.user.setActivity('YouTube', { type: 'WATCHING' });
Here is a link to the documentation in case you wanted to change 'Watching'
to something else like 'Playing'
.