Interface IContentFilter
- Namespace
- Kook
- Assembly
- Kook.Net.Experimental.dll
表示一个服务器内容过滤器。
public interface IContentFilter : IEntity<string>, IDeletable
- Inherited Members
Properties
CreatedAt
获取内容过滤器创建的时间。
DateTimeOffset CreatedAt { get; }
Property Value
Exemptions
获取此内容过滤器的豁免列表。
IReadOnlyCollection<ContentFilterExemption> Exemptions { get; }
Property Value
GuildId
获取此内容过滤器所属的服务器的 ID。
ulong GuildId { get; }
Property Value
Handlers
获取此内容过滤器的处理程序。
IReadOnlyCollection<IContentFilterHandler> Handlers { get; }
Property Value
IsEnabled
获取此内容过滤器是否启用。
bool IsEnabled { get; }
Property Value
Name
获取此限制的名称。
string Name { get; }
Property Value
Target
获取此内容过滤器的目标。
IContentFilterTarget Target { get; }
Property Value
UpdatedAt
获取内容过滤器更新的时间。
DateTimeOffset UpdatedAt { get; }
Property Value
Methods
DisableAsync(RequestOptions?)
禁用此内容过滤器。
Task DisableAsync(RequestOptions? options = null)
Parameters
optionsRequestOptions发送请求时要使用的选项。
Returns
- Task
一个表示异步修改操作的任务。
EnableAsync(RequestOptions?)
启用此内容过滤器。
Task EnableAsync(RequestOptions? options = null)
Parameters
optionsRequestOptions发送请求时要使用的选项。
Returns
- Task
一个表示异步修改操作的任务。
ModifyAsync(Action<ModifyContentFilterProperties>, RequestOptions?)
修改服务器的内容过滤器信息。
Task ModifyAsync(Action<ModifyContentFilterProperties> func, RequestOptions? options = null)
Parameters
funcAction<ModifyContentFilterProperties>用于修改内容过滤器属性的委托。
optionsRequestOptions发送请求时要使用的选项。
Returns
- Task
一个表示异步修改操作的任务。