PartialGroupDMChannel

export class PartialGroupDMChannel extends BaseChannel
export class PartialGroupDMChannel extends BaseChannel
Represents a Partial Group DM Channel on Discord.
Readonly
client:Client
The client that instantiated this
Readonly
createdAt:Date
The time the channel was created at
Readonly
createdTimestamp:number
The timestamp the channel was created at
flags:null
The flags that are applied to the channel. This is only null in a PartialGroupDMChannel. In all other cases, it is not null.
icon:string | null
The hash of the channel icon
The channel's id
name:string | null
The name of this Group DM Channel
Readonly
partial:boolean
Whether this Channel is a partial This is always false outside of DM channels.
recipients:PartialRecipient[]
The recipients of this Group DM Channel.
The type of the channel
Readonly
url:string
The URL to the channel
delete():Promise<this>
Deletes this channel.
Example
// Delete the channel
channel.delete()
.then(console.log)
.catch(console.error);
// Delete the channel
channel.delete()
.then(console.log)
.catch(console.error);
Inherited from BaseChannel
fetch(force?):Promise<this>
Fetches this channel.
NameTypeOptionalDescription
forcebooleanYesWhether to skip the cache check and request the API
Inherited from BaseChannel
iconURL(options?):string | null
The URL to this channel's icon.
Returns
NameTypeOptionalDescription
optionsImageURLOptionsYesOptions for the image URL
Indicates whether this channel is DM-based (either a DMChannel or a PartialGroupDMChannel).
Inherited from BaseChannel
isTextBased():this is TextBasedChannel
Indicates whether this channel is .
Inherited from BaseChannel
isThread():this is AnyThreadChannel
Indicates whether this channel is a ThreadChannel.
Inherited from BaseChannel
isThreadOnly():this is ThreadOnlyChannel
Indicates whether this channel is thread-only.
Inherited from BaseChannel
isVoiceBased():this is VoiceBasedChannel
Indicates whether this channel is voice-based.
Inherited from BaseChannel
toJSON(...props):unknown
NameTypeOptionalDescription
...propsRecord<string, boolean | string>[]NoNone
Inherited from Base
toString():ChannelMention
When concatenated with a string, this automatically returns the channel's mention instead of the Channel object.
Example
// Logs: Hello from <#123456789012345678>!
console.log(`Hello from ${channel}!`);
// Logs: Hello from <#123456789012345678>!
console.log(`Hello from ${channel}!`);
valueOf():string