command / me.schlaubi.regnumutils.common.jda / cc.hawkbot.regnum.client.core.discord.GameAnimator.Game / toActivity

toActivity

fun Game.toActivity(transform: (String) -> String = { it }): Activity

Converts a GameAnimator.Game to an Activity object which can be used for changing a jda presence.

Parameters

transform - a function that converts the games content if there are placeholders init

See Also

Activity