Set discord image to map image
This commit is contained in:
parent
8270fb31ab
commit
7352b7fc23
@ -35,6 +35,7 @@ namespace discord
|
|||||||
const auto map = game::Dvar_FindVar("mapname")->current.string;
|
const auto map = game::Dvar_FindVar("mapname")->current.string;
|
||||||
const auto mapname = game::UI_SafeTranslateString(utils::string::va("PRESENCE_SP_%s", map));
|
const auto mapname = game::UI_SafeTranslateString(utils::string::va("PRESENCE_SP_%s", map));
|
||||||
|
|
||||||
|
discord_presence.largeImageKey = map;
|
||||||
discord_presence.details = mapname;
|
discord_presence.details = mapname;
|
||||||
discord_presence.state = state.data();
|
discord_presence.state = state.data();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user