Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Print errors from discord integration as debug warnings instead of er…
Browse files Browse the repository at this point in the history
…rors, so normal users won't see them. At this point I have little hope of discord ever fixing their sdk.
  • Loading branch information
PazerOP committed Jan 9, 2021
1 parent 2664aa2 commit 34459b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tf2_bot_detector/DiscordRichPresence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ void DiscordState::Update()
if (auto result = discord::Core::Create(730945386390224976, DiscordCreateFlags_NoRequireDiscord, &core);
result != discord::Result::Ok)
{
LogError("Failed to initialize Discord Game SDK: {}", mh::enum_fmt(result));
DebugLogWarning("Failed to initialize Discord Game SDK: {}", mh::enum_fmt(result));
}
else
{
Expand All @@ -898,7 +898,7 @@ void DiscordState::Update()
core->SetLogHook(discord::LogLevel::Debug, &DiscordLogHookFunc);

if (auto result = m_Core->ActivityManager().RegisterSteam(440); result != discord::Result::Ok)
LogError("Failed to register discord integration as steam appid 440: {}", mh::enum_fmt(result));
DebugLogWarning("Failed to register discord integration as steam appid 440: {}", mh::enum_fmt(result));
}
}

Expand Down

0 comments on commit 34459b6

Please sign in to comment.