0
0
Fork 0

discord: Update ApplicationID (#6513)

This commit is contained in:
TSRBerry 2024-03-16 19:41:38 +01:00 committed by GitHub
parent 1217a8e69b
commit 24068b023c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,7 +7,7 @@ namespace Ryujinx.UI.Common
public static class DiscordIntegrationModule public static class DiscordIntegrationModule
{ {
private const string Description = "A simple, experimental Nintendo Switch emulator."; private const string Description = "A simple, experimental Nintendo Switch emulator.";
private const string CliendId = "568815339807309834"; private const string ApplicationId = "1216775165866807456";
private static DiscordRpcClient _discordClient; private static DiscordRpcClient _discordClient;
private static RichPresence _discordPresenceMain; private static RichPresence _discordPresenceMain;
@ -24,14 +24,14 @@ namespace Ryujinx.UI.Common
Details = "Main Menu", Details = "Main Menu",
State = "Idling", State = "Idling",
Timestamps = Timestamps.Now, Timestamps = Timestamps.Now,
Buttons = new[] Buttons =
{ [
new Button new Button
{ {
Label = "Website", Label = "Website",
Url = "https://ryujinx.org/", Url = "https://ryujinx.org/",
}, },
}, ],
}; };
ConfigurationState.Instance.EnableDiscordIntegration.Event += Update; ConfigurationState.Instance.EnableDiscordIntegration.Event += Update;
@ -52,7 +52,7 @@ namespace Ryujinx.UI.Common
// If we need to activate it and the client isn't active, initialize it // If we need to activate it and the client isn't active, initialize it
if (evnt.NewValue && _discordClient == null) if (evnt.NewValue && _discordClient == null)
{ {
_discordClient = new DiscordRpcClient(CliendId); _discordClient = new DiscordRpcClient(ApplicationId);
_discordClient.Initialize(); _discordClient.Initialize();
_discordClient.SetPresence(_discordPresenceMain); _discordClient.SetPresence(_discordPresenceMain);
@ -74,14 +74,14 @@ namespace Ryujinx.UI.Common
Details = $"Playing {titleName}", Details = $"Playing {titleName}",
State = (titleId == "0000000000000000") ? "Homebrew" : titleId.ToUpper(), State = (titleId == "0000000000000000") ? "Homebrew" : titleId.ToUpper(),
Timestamps = Timestamps.Now, Timestamps = Timestamps.Now,
Buttons = new[] Buttons =
{ [
new Button new Button
{ {
Label = "Website", Label = "Website",
Url = "https://ryujinx.org/", Url = "https://ryujinx.org/",
}, },
}, ],
}); });
} }