Class DiscordPresenceExtension.DiscordPresenceContext
- Namespace
- Hi3Helper.Plugin.Core.DiscordPresence
- Assembly
- Hi3Helper.Plugin.Core.dll
A context used to manage the context of Discord Presence information.
public class DiscordPresenceExtension.DiscordPresenceContext : IDisposable
- Inheritance
-
DiscordPresenceExtension.DiscordPresenceContext
- Implements
- Inherited Members
Constructors
DiscordPresenceContext(nint, IPluginPresetConfig)
public DiscordPresenceContext(nint pluginHandle, IPluginPresetConfig presetConfig)
Parameters
pluginHandlenintpresetConfigIPluginPresetConfig
Properties
IsFeatureAvailable
Indicates whether the Discord Presence feature is available.
public bool IsFeatureAvailable { get; }
Property Value
LargeIconTooltip
The tooltip text to be displayed when hovering over the large-icon in Discord.
public string? LargeIconTooltip { get; }
Property Value
LargeIconUrl
Represents which logo to be used for large-icon display in Discord.
The format of the URL can be just the name of the asset inside the Discord Application -> Rich Presence -> Art Assets menu or a full URL to an external logo (max: 256 chars).
public string? LargeIconUrl { get; }
Property Value
PresenceId
Represents the UID of the Discord Application ID.
public ulong PresenceId { get; }
Property Value
SmallIconTooltip
The tooltip text to be displayed when hovering over the small-icon in Discord.
public string? SmallIconTooltip { get; }
Property Value
SmallIconUrl
Represents which logo to be used for small-icon display in Discord.
The format of the URL can be just the name of the asset inside the Discord Application -> Rich Presence -> Art Assets menu or a full URL to an external logo (max: 256 chars).
public string? SmallIconUrl { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()