Table of Contents

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

pluginHandle nint
presetConfig IPluginPresetConfig

Properties

IsFeatureAvailable

Indicates whether the Discord Presence feature is available.

public bool IsFeatureAvailable { get; }

Property Value

bool

LargeIconTooltip

The tooltip text to be displayed when hovering over the large-icon in Discord.

public string? LargeIconTooltip { get; }

Property Value

string

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

string

PresenceId

Represents the UID of the Discord Application ID.

public ulong PresenceId { get; }

Property Value

ulong

SmallIconTooltip

The tooltip text to be displayed when hovering over the small-icon in Discord.

public string? SmallIconTooltip { get; }

Property Value

string

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

string

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()