java - Set custom Status for a Discord Bot Using JDA - Stack Overflow

admin2025-04-16  1

I'm developing a Discord bot using the Java Discord API (JDA) and would like to set a custom status message that appears below the bot's profile picture, similar to the "What you're thinking" status that regular users can set.

I am aware that it's possible to set activities like "Playing", "Listening to", etc., using the setActivity method:

jda.getPresence().setActivity(Activity.playing("Playing something"));

However, I haven't found a way to set a custom status message without the "Playing", "Listening to", or other prefixes.

Is there a way to set a custom status for a bot using JDA? If so, how can it be implemented? as I've looked at this in other bots, and never figured out how.

Note: I have reviewed the JDA documentation and existing discussions but haven't found a clear solution to this specific requirement.

转载请注明原文地址:http://www.anycun.com/QandA/1744765199a87303.html