Skip to content

Commit 3d6ca4c

Browse files
committed
Implement simple discord presence info
1 parent 0272d8e commit 3d6ca4c

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
File renamed without changes.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using Hi3Helper.Plugin.Core.DiscordPresence;
2+
3+
namespace Hi3Helper.Plugin.HBR;
4+
5+
public partial class Seraphim
6+
{
7+
private const ulong DiscordPresenceId = 1420376476976681050u;
8+
private const string DiscordPresenceLargeIconUrl = "https://play-lh.googleusercontent.com/IzdBGRsLy5Cf9NCTd11VTBAGZX6RaOqUglTAgvl5pRRXTDjDxQc1YlWM4vykHwu2rnpOBTo-Pqh8lON2ko5aLQ";
9+
10+
protected override bool GetCurrentDiscordPresenceInfoCore(
11+
DiscordPresenceExtension.DiscordPresenceContext context,
12+
out ulong presenceId,
13+
out string? largeIconUrl,
14+
out string? largeIconTooltip,
15+
out string? smallIconUrl,
16+
out string? smallIconTooltip)
17+
{
18+
presenceId = DiscordPresenceId;
19+
largeIconUrl = DiscordPresenceLargeIconUrl;
20+
largeIconTooltip = null;
21+
smallIconUrl = null;
22+
smallIconTooltip = null;
23+
24+
return true;
25+
}
26+
}

0 commit comments

Comments
 (0)