seyfert
    Preparing search index...

    Class NewsChannel

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    client: UsingClient
    defaultAutoArchiveDuration?: ThreadAutoArchiveDuration
    defaultThreadRateLimitPerUser?: number
    flags?: ChannelFlags
    guildId: string
    id: string
    invites: {
        create: (
            data: Omit<CreateInviteFromChannel, "channelId">,
        ) => Promise<
            {
                approximateMemberCount?: number;
                approximatePresenceCount?: number;
                channel: null
                | { id: string; name: null | string; type: ChannelType };
                code: string;
                createdAt: string;
                expiresAt?: null | string;
                guild?: {
                    banner: null | string;
                    description: null | string;
                    features: GuildFeature[];
                    icon: null | string;
                    id: string;
                    name: string;
                    nsfwLevel: GuildNSFWLevel;
                    premiumSubscriptionCount?: number;
                    splash: null | string;
                    vanityUrlCode: null | string;
                    verificationLevel: GuildVerificationLevel;
                };
                guildScheduledEvent?: | {
                    channelId: string;
                    creator?: APIUser;
                    creatorId?: null
                    | string;
                    description?: null | string;
                    entityId: null | string;
                    entityMetadata: null;
                    entityType: StageInstance;
                    guildId: string;
                    id: string;
                    image?: null | string;
                    name: string;
                    privacyLevel: GuildScheduledEventPrivacyLevel;
                    recurrenceRule: null | APIGuildScheduledEventRecurrenceRule;
                    scheduledEndTime: null | string;
                    scheduledStartTime: string;
                    status: GuildScheduledEventStatus;
                    userCount?: number;
                }
                | {
                    channelId: string;
                    creator?: APIUser;
                    creatorId?: null
                    | string;
                    description?: null | string;
                    entityId: null | string;
                    entityMetadata: null;
                    entityType: Voice;
                    guildId: string;
                    id: string;
                    image?: null | string;
                    name: string;
                    privacyLevel: GuildScheduledEventPrivacyLevel;
                    recurrenceRule: null | APIGuildScheduledEventRecurrenceRule;
                    scheduledEndTime: null | string;
                    scheduledStartTime: string;
                    status: GuildScheduledEventStatus;
                    userCount?: number;
                }
                | {
                    channelId: null;
                    creator?: APIUser;
                    creatorId?: null
                    | string;
                    description?: null | string;
                    entityId: null | string;
                    entityMetadata: { location: string };
                    entityType: External;
                    guildId: string;
                    id: string;
                    image?: null | string;
                    name: string;
                    privacyLevel: GuildScheduledEventPrivacyLevel;
                    recurrenceRule: null | APIGuildScheduledEventRecurrenceRule;
                    scheduledEndTime: null | string;
                    scheduledStartTime: string;
                    status: GuildScheduledEventStatus;
                    userCount?: number;
                };
                inviter?: {
                    accentColor?: null
                    | number;
                    avatar: null | string;
                    avatarDecorationData?: null | APIAvatarDecorationData;
                    banner?: null | string;
                    bot?: boolean;
                    discriminator: string;
                    email?: null | string;
                    flags?: UserFlags;
                    globalName: null | string;
                    id: string;
                    locale?: string;
                    mfaEnabled?: boolean;
                    premiumType?: UserPremiumType;
                    publicFlags?: UserFlags;
                    system?: boolean;
                    username: string;
                    verified?: boolean;
                };
                maxAge: number;
                maxUses: number;
                targetApplication?: {
                    approximateGuildCount?: number;
                    approximateUserInstallCount?: number;
                    bot?: APIUser;
                    botPublic?: boolean;
                    botRequireCodeGrant?: boolean;
                    coverImage?: string;
                    customInstallUrl?: string;
                    description?: string;
                    flags?: ApplicationFlags;
                    guild?: APIPartialGuild;
                    guildId?: string;
                    icon?: null
                    | string;
                    id?: string;
                    installParams?: APIApplicationInstallParams;
                    integrationTypesConfig?: APIApplicationIntegrationTypesConfigMap;
                    interactionsEndpointUrl?: null | string;
                    name?: string;
                    owner?: APIUser;
                    primarySkuId?: string;
                    privacyPolicyUrl?: string;
                    redirectUris?: string[];
                    roleConnectionsVerificationUrl?: null | string;
                    rpcOrigins?: string[];
                    slug?: string;
                    tags?: [string, string?, string?, string?, string?];
                    team?: null | APITeam;
                    termsOfServiceUrl?: string;
                    verifyKey?: string;
                };
                targetType?: InviteTargetType;
                targetUser?: {
                    accentColor?: null
                    | number;
                    avatar: null | string;
                    avatarDecorationData?: null | APIAvatarDecorationData;
                    banner?: null | string;
                    bot?: boolean;
                    discriminator: string;
                    email?: null | string;
                    flags?: UserFlags;
                    globalName: null | string;
                    id: string;
                    locale?: string;
                    mfaEnabled?: boolean;
                    premiumType?: UserPremiumType;
                    publicFlags?: UserFlags;
                    system?: boolean;
                    username: string;
                    verified?: boolean;
                };
                temporary: boolean;
                type: InviteType;
                uses: number;
            },
        >;
        delete: (
            code: string,
            reason?: string,
        ) => Promise<
            {
                approximateMemberCount?: number;
                approximatePresenceCount?: number;
                channel: null
                | { id: string; name: null | string; type: ChannelType };
                code: string;
                expiresAt?: null | string;
                guild?: {
                    banner: null | string;
                    description: null | string;
                    features: GuildFeature[];
                    icon: null | string;
                    id: string;
                    name: string;
                    nsfwLevel: GuildNSFWLevel;
                    premiumSubscriptionCount?: number;
                    splash: null | string;
                    vanityUrlCode: null | string;
                    verificationLevel: GuildVerificationLevel;
                };
                guildScheduledEvent?: | {
                    channelId: string;
                    creator?: APIUser;
                    creatorId?: null
                    | string;
                    description?: null | string;
                    entityId: null | string;
                    entityMetadata: null;
                    entityType: StageInstance;
                    guildId: string;
                    id: string;
                    image?: null | string;
                    name: string;
                    privacyLevel: GuildScheduledEventPrivacyLevel;
                    recurrenceRule: null | APIGuildScheduledEventRecurrenceRule;
                    scheduledEndTime: null | string;
                    scheduledStartTime: string;
                    status: GuildScheduledEventStatus;
                    userCount?: number;
                }
                | {
                    channelId: string;
                    creator?: APIUser;
                    creatorId?: null
                    | string;
                    description?: null | string;
                    entityId: null | string;
                    entityMetadata: null;
                    entityType: Voice;
                    guildId: string;
                    id: string;
                    image?: null | string;
                    name: string;
                    privacyLevel: GuildScheduledEventPrivacyLevel;
                    recurrenceRule: null | APIGuildScheduledEventRecurrenceRule;
                    scheduledEndTime: null | string;
                    scheduledStartTime: string;
                    status: GuildScheduledEventStatus;
                    userCount?: number;
                }
                | {
                    channelId: null;
                    creator?: APIUser;
                    creatorId?: null
                    | string;
                    description?: null | string;
                    entityId: null | string;
                    entityMetadata: { location: string };
                    entityType: External;
                    guildId: string;
                    id: string;
                    image?: null | string;
                    name: string;
                    privacyLevel: GuildScheduledEventPrivacyLevel;
                    recurrenceRule: null | APIGuildScheduledEventRecurrenceRule;
                    scheduledEndTime: null | string;
                    scheduledStartTime: string;
                    status: GuildScheduledEventStatus;
                    userCount?: number;
                };
                inviter?: {
                    accentColor?: null
                    | number;
                    avatar: null | string;
                    avatarDecorationData?: null | APIAvatarDecorationData;
                    banner?: null | string;
                    bot?: boolean;
                    discriminator: string;
                    email?: null | string;
                    flags?: UserFlags;
                    globalName: null | string;
                    id: string;
                    locale?: string;
                    mfaEnabled?: boolean;
                    premiumType?: UserPremiumType;
                    publicFlags?: UserFlags;
                    system?: boolean;
                    username: string;
                    verified?: boolean;
                };
                targetApplication?: {
                    approximateGuildCount?: number;
                    approximateUserInstallCount?: number;
                    bot?: APIUser;
                    botPublic?: boolean;
                    botRequireCodeGrant?: boolean;
                    coverImage?: string;
                    customInstallUrl?: string;
                    description?: string;
                    flags?: ApplicationFlags;
                    guild?: APIPartialGuild;
                    guildId?: string;
                    icon?: null
                    | string;
                    id?: string;
                    installParams?: APIApplicationInstallParams;
                    integrationTypesConfig?: APIApplicationIntegrationTypesConfigMap;
                    interactionsEndpointUrl?: null | string;
                    name?: string;
                    owner?: APIUser;
                    primarySkuId?: string;
                    privacyPolicyUrl?: string;
                    redirectUris?: string[];
                    roleConnectionsVerificationUrl?: null | string;
                    rpcOrigins?: string[];
                    slug?: string;
                    tags?: [string, string?, string?, string?, string?];
                    team?: null | APITeam;
                    termsOfServiceUrl?: string;
                    verifyKey?: string;
                };
                targetType?: InviteTargetType;
                targetUser?: {
                    accentColor?: null
                    | number;
                    avatar: null | string;
                    avatarDecorationData?: null | APIAvatarDecorationData;
                    banner?: null | string;
                    bot?: boolean;
                    discriminator: string;
                    email?: null | string;
                    flags?: UserFlags;
                    globalName: null | string;
                    id: string;
                    locale?: string;
                    mfaEnabled?: boolean;
                    premiumType?: UserPremiumType;
                    publicFlags?: UserFlags;
                    system?: boolean;
                    username: string;
                    verified?: boolean;
                };
                type: InviteType;
            },
        >;
        list: () => Promise<
            {
                approximateMemberCount?: number;
                approximatePresenceCount?: number;
                channel: null
                | { id: string; name: null | string; type: ChannelType };
                code: string;
                createdAt: string;
                expiresAt?: null | string;
                guild?: {
                    banner: null | string;
                    description: null | string;
                    features: GuildFeature[];
                    icon: null | string;
                    id: string;
                    name: string;
                    nsfwLevel: GuildNSFWLevel;
                    premiumSubscriptionCount?: number;
                    splash: null | string;
                    vanityUrlCode: null | string;
                    verificationLevel: GuildVerificationLevel;
                };
                guildScheduledEvent?: | {
                    channelId: string;
                    creator?: APIUser;
                    creatorId?: null
                    | string;
                    description?: null | string;
                    entityId: null | string;
                    entityMetadata: null;
                    entityType: StageInstance;
                    guildId: string;
                    id: string;
                    image?: null | string;
                    name: string;
                    privacyLevel: GuildScheduledEventPrivacyLevel;
                    recurrenceRule: null | APIGuildScheduledEventRecurrenceRule;
                    scheduledEndTime: null | string;
                    scheduledStartTime: string;
                    status: GuildScheduledEventStatus;
                    userCount?: number;
                }
                | {
                    channelId: string;
                    creator?: APIUser;
                    creatorId?: null
                    | string;
                    description?: null | string;
                    entityId: null | string;
                    entityMetadata: null;
                    entityType: Voice;
                    guildId: string;
                    id: string;
                    image?: null | string;
                    name: string;
                    privacyLevel: GuildScheduledEventPrivacyLevel;
                    recurrenceRule: null | APIGuildScheduledEventRecurrenceRule;
                    scheduledEndTime: null | string;
                    scheduledStartTime: string;
                    status: GuildScheduledEventStatus;
                    userCount?: number;
                }
                | {
                    channelId: null;
                    creator?: APIUser;
                    creatorId?: null
                    | string;
                    description?: null | string;
                    entityId: null | string;
                    entityMetadata: { location: string };
                    entityType: External;
                    guildId: string;
                    id: string;
                    image?: null | string;
                    name: string;
                    privacyLevel: GuildScheduledEventPrivacyLevel;
                    recurrenceRule: null | APIGuildScheduledEventRecurrenceRule;
                    scheduledEndTime: null | string;
                    scheduledStartTime: string;
                    status: GuildScheduledEventStatus;
                    userCount?: number;
                };
                inviter?: {
                    accentColor?: null
                    | number;
                    avatar: null | string;
                    avatarDecorationData?: null | APIAvatarDecorationData;
                    banner?: null | string;
                    bot?: boolean;
                    discriminator: string;
                    email?: null | string;
                    flags?: UserFlags;
                    globalName: null | string;
                    id: string;
                    locale?: string;
                    mfaEnabled?: boolean;
                    premiumType?: UserPremiumType;
                    publicFlags?: UserFlags;
                    system?: boolean;
                    username: string;
                    verified?: boolean;
                };
                maxAge: number;
                maxUses: number;
                targetApplication?: {
                    approximateGuildCount?: number;
                    approximateUserInstallCount?: number;
                    bot?: APIUser;
                    botPublic?: boolean;
                    botRequireCodeGrant?: boolean;
                    coverImage?: string;
                    customInstallUrl?: string;
                    description?: string;
                    flags?: ApplicationFlags;
                    guild?: APIPartialGuild;
                    guildId?: string;
                    icon?: null
                    | string;
                    id?: string;
                    installParams?: APIApplicationInstallParams;
                    integrationTypesConfig?: APIApplicationIntegrationTypesConfigMap;
                    interactionsEndpointUrl?: null | string;
                    name?: string;
                    owner?: APIUser;
                    primarySkuId?: string;
                    privacyPolicyUrl?: string;
                    redirectUris?: string[];
                    roleConnectionsVerificationUrl?: null | string;
                    rpcOrigins?: string[];
                    slug?: string;
                    tags?: [string, string?, string?, string?, string?];
                    team?: null | APITeam;
                    termsOfServiceUrl?: string;
                    verifyKey?: string;
                };
                targetType?: InviteTargetType;
                targetUser?: {
                    accentColor?: null
                    | number;
                    avatar: null | string;
                    avatarDecorationData?: null | APIAvatarDecorationData;
                    banner?: null | string;
                    bot?: boolean;
                    discriminator: string;
                    email?: null | string;
                    flags?: UserFlags;
                    globalName: null | string;
                    id: string;
                    locale?: string;
                    mfaEnabled?: boolean;
                    premiumType?: UserPremiumType;
                    publicFlags?: UserFlags;
                    system?: boolean;
                    username: string;
                    verified?: boolean;
                };
                temporary: boolean;
                type: InviteType;
                uses: number;
            }[],
        >;
    } = ...
    lastMessageId?: null | string
    lastPinTimestamp?: null | string
    messages: {
        crosspost: (messageId: string, reason?: string) => Promise<Message>;
        delete: (messageId: string, reason?: string) => Promise<void>;
        edit: (
            messageId: string,
            body: Omit<
                RESTPatchAPIChannelMessageJSONBody,
                "components"
                | "content"
                | "embeds",
            > & ResolverProps,
        ) => Promise<Message>;
        fetch: (messageId: string, force?: boolean) => Promise<Message>;
        list: (fetchOptions: RESTGetAPIChannelMessagesQuery) => Promise<Message[]>;
        purge: (messages: string[], reason?: string) => Promise<undefined | void>;
        write: (
            body: Omit<
                RESTPostAPIChannelMessageJSONBody,
                "components"
                | "content"
                | "embeds"
                | "poll",
            > & SendResolverProps,
        ) => Promise<Message>;
    } = ...
    name: string
    nsfw?: boolean
    parentId?: null | string
    permissionOverwrites: {
        fetch: () => ReturnCache<
            | undefined
            | {
                allow: PermissionsBitField;
                deny: PermissionsBitField;
                guildId: string;
                id: string;
                type: number;
            }[],
        >;
        values: () => {
            allow: PermissionsBitField;
            deny: PermissionsBitField;
            guildId: string;
            id: string;
            type: number;
        }[][];
    } = ...
    pins: {
        delete: (messageId: string, reason?: string) => Promise<undefined>;
        fetch: () => Promise<Message[]>;
        set: (messageId: string, reason?: string) => Promise<undefined>;
    } = ...
    position: number
    rateLimitPerUser?: number
    reactions: {
        add: (messageId: string, emoji: EmojiResolvable) => Promise<void>;
        delete: (
            messageId: string,
            emoji: EmojiResolvable,
            userId?: string,
        ) => Promise<void>;
        fetch: (
            messageId: string,
            emoji: EmojiResolvable,
            query?: RESTGetAPIChannelMessageReactionUsersQuery,
        ) => Promise<User[]>;
        purge: (messageId: string, emoji?: EmojiResolvable) => Promise<void>;
    } = ...
    topic?: null | string
    type: GuildAnnouncement
    webhooks: {
        create: (body: RESTPostAPIChannelWebhookJSONBody) => Promise<Webhook>;
        list: () => Promise<Webhook[]>;
    } = ...

    Accessors

    • get createdAt(): Date

      createdAt gets the creation Date instace of the current object.

      Returns Date

    Methods

    • Parameters

      • webhookChannelId: string
      • Optionalreason: string

      Returns Promise<APIFollowedChannel>

    • Type Parameters

      • T extends (keyof IChannelTypes)[]

      Parameters

      • channelTypes: T

      Returns this is IChannelTypes[T[number]]

    • Parameters

      Returns Promise<
          {
              everyone: | undefined
              | {
                  allow: PermissionsBitField;
                  deny: PermissionsBitField;
                  guildId: string;
                  id: string;
                  type: number;
              };
              member: | undefined
              | {
                  allow: PermissionsBitField;
                  deny: PermissionsBitField;
                  guildId: string;
                  id: string;
                  type: number;
              };
              roles: {
                  allow: PermissionsBitField;
                  deny: PermissionsBitField;
                  guildId: string;
                  id: string;
                  type: number;
              }[];
          },
      >

    • Parameters

      Returns {
          create: <T extends GuildChannelTypes = GuildChannelTypes>(
              body: RESTPostAPIGuildChannelJSONBody & { type: T },
          ) => Promise<SeyfertChannelMap[T]>;
          delete: (id: string, reason?: string) => Promise<AllChannels>;
          edit: (
              id: string,
              body: RESTPatchAPIChannelJSONBody,
              reason?: string,
          ) => Promise<AllChannels>;
          editPositions: (
              body: RESTPatchAPIGuildChannelPositionsJSONBody,
          ) => Promise<undefined>;
          fetch: (id: string, force?: boolean) => Promise<AllChannels>;
          list: (force?: boolean) => Promise<AllChannels[]>;
      }