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
TypeContentFilterExemptionType获取此豁免的类型。
Idulong获取此豁免的标识。
ContentFilterExemption(ICategoryChannel)
使用指定的服务器分组频道创建一个内容过滤器豁免实体。
public ContentFilterExemption(ICategoryChannel channel)
Parameters
channelICategoryChannel要豁免的分组频道。
ContentFilterExemption(IRole)
使用指定的服务器角色创建一个内容过滤器豁免实体。
public ContentFilterExemption(IRole role)
Parameters
roleIRole要豁免的服务器角色。
ContentFilterExemption(ITextChannel)
使用指定的服务器文字频道创建一个内容过滤器豁免实体。
public ContentFilterExemption(ITextChannel channel)
Parameters
channelITextChannel要豁免的文字频道。
Properties
Id
获取此豁免的标识。
public ulong Id { get; init; }
Property Value
Type
获取此豁免的类型。
public ContentFilterExemptionType Type { get; init; }