interface TextBasedChannelFields

export interface TextBasedChannelFields<InGuild extends boolean = boolean> extends PartialTextBasedChannelFields<InGuild>

Type Parameters

optional
InGuild? extends boolean = boolean

readonly
lastMessage : Message | null

lastMessageId : Snowflake | null

readonly
lastPinAt : Date | null

lastPinTimestamp : number | null

messages : If<InGuild, GuildMessageManager, DMMessageManager>

awaitMessageComponent<

ComponentType extends MessageComponentType

>(
options?: AwaitMessageCollectorOptionsParams<ComponentType, true>
) : Promise<MappedInteractionTypes[ComponentType]>

createMessageCollector() : MessageCollector

createMessageComponentCollector<

ComponentType extends MessageComponentType

>(
options?: MessageChannelCollectorOptionsParams<ComponentType, true>
) : InteractionCollector<MappedInteractionTypes[ComponentType]>

sendTyping() : Promise<void>

setNSFW(
nsfw?: boolean
reason?: string
) : Promise<this>

setRateLimitPerUser(
rateLimitPerUser: number
reason?: string
) : Promise<this>