interface PartialDMChannel {
    client: Client<true>;
    createdAt: null | Date;
    createdTimestamp: null | number;
    flags: Readonly<ChannelFlagsBitField>;
    id: string;
    lastMessage: null | Message<boolean>;
    lastMessageId: undefined;
    lastPinAt: null | Date;
    lastPinTimestamp: null | number;
    messages: DMMessageManager;
    partial: true;
    recipient: null | User;
    recipientId: string;
    type: DM;
    url: string;
    awaitMessageComponent<ComponentType extends MessageComponentType>(
        options?: AwaitMessageCollectorOptionsParams<ComponentType, true>,
    ): Promise<MappedInteractionTypes<boolean>[ComponentType]>;
    awaitMessages(
        options?: AwaitMessagesOptions,
    ): Promise<Collection<string, Message<boolean>>>;
    createMessageCollector(options?: MessageCollectorOptions): MessageCollector;
    createMessageComponentCollector<ComponentType extends MessageComponentType>(
        options?: MessageChannelCollectorOptionsParams<ComponentType, true>,
    ): InteractionCollector<MappedInteractionTypes<boolean>[ComponentType]>;
    delete(): Promise<DMChannel>;
    fetch(force?: boolean): Promise<DMChannel>;
    isDMBased(): this is DMChannel | PartialDMChannel | PartialGroupDMChannel;
    isSendable(): this is SendableChannels;
    isTextBased(): this is TextBasedChannel;
    isThread(): this is AnyThreadChannel;
    isThreadOnly(): this is ThreadOnlyChannel;
    isVoiceBased(): this is VoiceBasedChannel;
    send(
        options: string | MessagePayload | MessageCreateOptions,
    ): Promise<Message<false>>;
    sendTyping(): Promise<void>;
    toJSON(...props: Record<string, string | boolean>[]): unknown;
    toString(): `<@${string}>`;
    valueOf(): string;
}

Hierarchy (View Summary)

Properties

client: Client<true>
createdAt: null | Date
createdTimestamp: null | number
id: string
lastMessage: null | Message<boolean>
lastMessageId: undefined
lastPinAt: null | Date
lastPinTimestamp: null | number
partial: true
recipient: null | User
recipientId: string
type: DM
url: string

Methods

  • Parameters

    • Optionalforce: boolean

    Returns Promise<DMChannel>

  • Returns this is SendableChannels

  • Returns this is TextBasedChannel

  • Returns this is AnyThreadChannel

  • Returns this is ThreadOnlyChannel

  • Returns this is VoiceBasedChannel

  • Returns Promise<void>

  • Parameters

    • ...props: Record<string, string | boolean>[]

    Returns unknown

  • Returns `<@${string}>`

  • Returns string