DMChannel

Signature

export interface DMChannel extends ObjectToLower<APIDMChannel>, MessagesMethods

Private types

IChannelTypesInterface
interface IChannelTypes {    GuildStageVoice: StageChannel;    GuildMedia: MediaChannel;    DM: DMChannel;    GuildForum: ForumChannel;    AnnouncementThread: ThreadChannel;    PrivateThread: ThreadChannel;    PublicThread: ThreadChannel;    GuildDirectory: DirectoryChannel;    GuildVoice: VoiceChannel;    GuildText: TextGuildChannel;    GuildCategory: CategoryChannel;    GuildAnnouncement: NewsChannel;}

Properties

urlGetter
get url(): `https://discord.com/channels/${string}/${string}`;

The URL to the channel

get createdTimestamp(): number;

Create a timestamp for the current object.

get createdAt(): Date;

createdAt gets the creation Date instace of the current object.

recipients?: { id: string; username: string; discriminator: string; globalName: string | null; avatar: string | null; bot?: boolean | undefined; system?: boolean | undefined; mfaEnabled?: boolean | undefined; banner?: string | null | undefined; accentColor?: number | null | undefined; locale?: string | undefined; verified?: boolean | undefined; email?: string | null | undefined; flags?: UserFlags | undefined; premiumType?: UserPremiumType | undefined; publicFlags?: UserFlags | undefined; avatarDecorationData?: { asset: string; skuId: string; } | null | undefined; collectibles?: { nameplate?: APINameplateData | undefined; } | null | undefined; primaryGuild?: { identityGuildId: string | null; identityEnabled: boolean | null; tag: string | null; badge: string | null; } | null | undefined; }[] | undefined;

Methods

delete(reason?: string): Promise<this>;
toString(): `<#${string}>`;

Returns a string representation of an object.