DMChannel
Signature
export interface DMChannel extends ObjectToLower<APIDMChannel>, MessagesMethodsPrivate 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
14Methods
20Properties
type: ChannelType.DM;urlGetterget url(): `https://discord.com/channels/${string}/${string}`;The URL to the channel
id: string;createdTimestampGetterget createdTimestamp(): number;Create a timestamp for the current object.
createdAtGetterget createdAt(): Date;createdAt gets the creation Date instace of the current object.
readonly client: UsingClient;name: undefined;flags?: ChannelFlags | undefined;lastMessageId?: string | null | undefined;lastPinTimestamp?: string | null | undefined;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;messages: MessagesMethods["messages"];pins: MessagesMethods["pins"];reactions: MessagesMethods["reactions"];Methods
fetch(mode?: 'rest' | 'flow'): Promise<AllChannels>;fetch(mode: 'cache'): ReturnCache<AllChannels | undefined>;delete(reason?: string): Promise<this>;toString(): `<#${string}>`;Returns a string representation of an object.
isStage(): this is StageChannel;isMedia(): this is MediaChannel;isDM(): this is DMChannel;isForum(): this is ForumChannel;isThread(): this is ThreadChannel;isDirectory(): this is DirectoryChannel;isVoice(): this is VoiceChannel;isTextGuild(): this is TextGuildChannel;isCategory(): this is CategoryChannel;isNews(): this is NewsChannel;isTextable(): this is AllTextableChannels;isGuildTextable(): this is AllGuildTextableChannels;isNamed(): this is AllNamedChannels;isGuild(): this is AllGuildChannels | BaseGuildChannelStructure;isThreadOnly(): this is ForumChannel | MediaChannel;is<T extends (keyof IChannelTypes)[]>(channelTypes: T): this is IChannelTypes[T[number]];typing(): Promise<void>;