Table of Contents

Class EmoteExtensions

Namespace
Kook
Assembly
Kook.Net.Core.dll

提供对表情符号的扩展方法。

public static class EmoteExtensions
Inheritance
EmoteExtensions
Inherited Members

Methods

GetDynamicResourceUrl(InteractiveEmote)

获取互动表情符号在显示随机结果前的动画资源图像的 URL。

public static string? GetDynamicResourceUrl(this InteractiveEmote emote)

Parameters

emote InteractiveEmote

要获取动画资源 URL 的互动表情。

Returns

string

互动表情随机结果的资源 URL。

Remarks

如果动态表情符号不是从 KOOK API 或网关生成的,则此方法返回 null

GetResourceUrl(InteractiveEmoteRollResult)

获取互动表情随机结果的资源 URL。

public static string GetResourceUrl(this InteractiveEmoteRollResult emoteResult)

Parameters

emoteResult InteractiveEmoteRollResult

要获取资源 URL 的互动表情随机结果。

Returns

string

互动表情随机结果的资源 URL。