Skip to content

BaseUserChannel

A base User channel, allwoing bots to interact with channels outside of a discord Guild.

Properties

id

BaseUserChannel.id  :: string

recipients

BaseUserChannel.recipients  :: { Objects.DiscordUser }

id

BaseUserChannel.id  :: string

This property was inherited from Objects.BaseDiscordChannel

type

BaseUserChannel.type  :: number

This property was inherited from Objects.BaseDiscordChannel

Methods

triggerTypingIndicator

BaseUserChannel : triggerTypingIndicator ()  -> Vendor.Future

Triggers the typing indicator in the channel.

getMessagesAsync

BaseUserChannel : getMessagesAsync (

     limit: number?
)  -> Vendor.Future

Gets messages from the channel asynchronously.

getMessageAsync

BaseUserChannel : getMessageAsync (

     messageId: string
)  -> Vendor.Future

Gets a specific message from the channel asynchronously.

bulkDeleteMessagesAsync

BaseUserChannel : bulkDeleteMessagesAsync (

     messageIds: {string}
)  -> Vendor.Future

Deletes multiple messages from the channel asynchronously.

sendMessageAsync

BaseUserChannel : sendMessageAsync (

     messageBuilder: MessageBuilder
)  -> Vendor.Future

Sends a message to the channel asynchronously.

getPinnedMessagesAsync

BaseUserChannel : getPinnedMessagesAsync ()  -> Vendor.Future<{[number]: DiscordMessage}>

Retrieves the pinned messages in the text channel asynchronously.

deleteAsync

BaseUserChannel : deleteAsync ()  -> Vendor.Future

Deletes the channel asynchronously.

This function was inherited from Objects.BaseDiscordChannel

Functions

The BaseUserChannel instance has no set functions!