#pragma once12#include <string_view>34// Simple wrapper around the Discord api.56// All platforms should call it, but we only actually take action on7// platforms where we want it enabled (only PC initially).89// All you need to call is FrameCallback, Shutdown, and UpdatePresence.1011class Discord {12public:13~Discord();14void Update(); // Call every frame or at least regularly. Will initialize if necessary.15void Shutdown();1617void SetPresenceGame(std::string_view gameTitle);18void SetPresenceMenu();19void ClearPresence();2021static bool IsAvailable();2223private:24void Init();25bool IsEnabled() const;2627bool initialized_ = false;28};2930extern Discord g_Discord;313233