Classplugin-tasksv0.1.0-next.1
\@RegisterTask()
export class Unban extends Task<{ guildId: string; userId: string }> {
public async execute(): Promise<void> {
const { guildId, userId } = this.data;
await this.core.rest.delete(Routes.guildBan(guildId, userId));
}
}Member visibility
Filter class members by access level.
Task(context: TaskContext<TData>)protected readonly core: TCoreprotected readonly data: TaskData<TData>public readonly key: stringprotected readonly logger: Loggerprotected readonly signal: AbortSignalprotected readonly startedAt: Dateprotected readonly trigger: TaskTrigger