Hierarchy (View Summary, Expand)

Constructors

Properties

application: Application
client: BaseClient
logger: Logger
name: string

Returns the name of the function. Function names are read-only and can not be changed.

Methods

  • Parameters

    • channel:
          | CategoryChannel
          | NewsChannel
          | StageChannel
          | TextChannel
          | VoiceChannel
          | ForumChannel
          | MediaChannel

    Returns Promise<
        | {
            code?: undefined;
            message: string;
            status: "error";
            type: "not_managable";
        }
        | {
            code?: undefined;
            message: string;
            status: "error";
            type: "channel_already_locked";
        }
        | {
            code: string
            | number;
            message: string;
            status: "error";
            type: "api_error";
        }
        | { code?: undefined; message: string; status: "error"; type: "unknown" }
        | {
            code?: undefined;
            message?: undefined;
            status: "success";
            type?: undefined;
        },
    >

  • Parameters

    • guild: Guild
    • Optionalchannels: Iterable<GuildBasedChannel, any, any>

    Returns Promise<
        {
            alreadyLocked: number;
            errors: string[];
            permissionErrors: number;
            skipped: number;
            success: number;
            total: number;
        },
    >

  • Parameters

    • channel:
          | CategoryChannel
          | NewsChannel
          | StageChannel
          | TextChannel
          | VoiceChannel
          | ForumChannel
          | MediaChannel

    Returns Promise<
        | {
            code?: undefined;
            message: string;
            status: "error";
            type: "not_managable";
        }
        | {
            code?: undefined;
            message: string;
            status: "error";
            type: "channel_not_locked";
        }
        | {
            code: string
            | number;
            message: string;
            status: "error";
            type: "api_error";
        }
        | { code?: undefined; message: string; status: "error"; type: "unknown" }
        | {
            code?: undefined;
            message?: undefined;
            status: "success";
            type?: undefined;
        },
    >

  • Parameters

    • guild: Guild
    • Optionalchannels: Iterable<GuildBasedChannel, any, any>

    Returns Promise<
        {
            errors: string[];
            notLocked: number;
            permissionErrors: number;
            skipped: number;
            success: number;
            total: number;
        },
    >

MMNEPVFCICPMFPCPTTAAATR