Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set custom status in discord bot according to new update?

Tags:

discord.js

According to new update youu can set your own custom status without playing or listening this is't added in documentation yet what can I do here. There is no option to set custom activity in the discord.js git see the image stable/src/util/Constants.js here too discord status image

like image 326
ethyt Avatar asked Dec 07 '22 11:12

ethyt


1 Answers

You can get custom status to appear on a bot, but it won't be able to say anything. According to a Github issue on discord-api-docs, More specifically, this issue, and even more specifically, this comment on that issue. You can basically set the activity type to 4 for the client's cs by using the ClientUser.setActivity() method, and check it's full profile to see that custom status is technically available for bots.

bot.user.setActivity(`this won't appear in the bot's custom status!`, {type: 4})
like image 94
SomePerson Avatar answered May 17 '23 06:05

SomePerson