mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Limit custom Discord RPC pipe client to Linux
This commit is contained in:
parent
8bedcece52
commit
1d4ff226e0
1 changed files with 7 additions and 6 deletions
|
|
@ -104,12 +104,13 @@ namespace MinecraftClient.ChatBots
|
|||
|
||||
try
|
||||
{
|
||||
_rpcClient = new DiscordRpcClient(Config.ApplicationId.Trim(), client: new DiscordRpcPipeClient())
|
||||
{
|
||||
Logger = Settings.Config.Logging.DebugMessages
|
||||
? new ConsoleLogger(LogLevel.Trace)
|
||||
: new ConsoleLogger(LogLevel.None)
|
||||
};
|
||||
_rpcClient = OperatingSystem.IsLinux()
|
||||
? new DiscordRpcClient(Config.ApplicationId.Trim(), client: new DiscordRpcPipeClient())
|
||||
: new DiscordRpcClient(Config.ApplicationId.Trim());
|
||||
|
||||
_rpcClient.Logger = Settings.Config.Logging.DebugMessages
|
||||
? new ConsoleLogger(LogLevel.Trace)
|
||||
: new ConsoleLogger(LogLevel.None);
|
||||
|
||||
_rpcClient.OnReady += (_, e) =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue