discord-jda / JDA

Java wrapper for the popular chat & VOIP service: Discord https://discord.com
Apache License 2.0
4.28k stars 738 forks source link

How give a streaming link #536

Closed Ohw222 closed 6 years ago

Ohw222 commented 6 years ago

How i can set the presence to a streamink link lithe that : capture5

WalshyDev commented 6 years ago

:ReadTheDocs: Literally just set the presence and use Game.of(String, String) where the second string is the Twitch URL. Example: client.getPresence().setGame(Game.of("Example game", "https://www.twitch.tv/discordflarebot")); Where client is your JDA built client.

kantenkugel commented 6 years ago

To add to @WalshyDev comment: Or do it directly through the JDABuilder if it is static and predetermined for the bot.

And in case you might ask: NO, JDA doesn't support streaming links other than twitch for the simple fact that Discord itself doesn't support them.