Table of Contents

Struct ContentFilterExemption

Namespace
Kook
Assembly
Kook.Net.Experimental.dll

表示一个内容过滤器的豁免实体。

public readonly record struct ContentFilterExemption : IEquatable<ContentFilterExemption>
Implements
Inherited Members

Constructors

ContentFilterExemption(ContentFilterExemptionType, ulong)

表示一个内容过滤器的豁免实体。

public ContentFilterExemption(ContentFilterExemptionType Type, ulong Id)

Parameters

Type ContentFilterExemptionType

获取此豁免的类型。

Id ulong

获取此豁免的标识。

ContentFilterExemption(ICategoryChannel)

使用指定的服务器分组频道创建一个内容过滤器豁免实体。

public ContentFilterExemption(ICategoryChannel channel)

Parameters

channel ICategoryChannel

要豁免的分组频道。

ContentFilterExemption(IRole)

使用指定的服务器角色创建一个内容过滤器豁免实体。

public ContentFilterExemption(IRole role)

Parameters

role IRole

要豁免的服务器角色。

ContentFilterExemption(ITextChannel)

使用指定的服务器文字频道创建一个内容过滤器豁免实体。

public ContentFilterExemption(ITextChannel channel)

Parameters

channel ITextChannel

要豁免的文字频道。

Properties

Id

获取此豁免的标识。

public ulong Id { get; init; }

Property Value

ulong

Type

获取此豁免的类型。

public ContentFilterExemptionType Type { get; init; }

Property Value

ContentFilterExemptionType