channel

Constructor

new Channel(channeldata, client)

Properties

id

The id of the provided channel

Returns - Number

recipients

The recipients of the channel in dms, if any

Returns - Array<userObject>

lastMessageID

The id of the last sent message, if any

Returns - ?Number

type

The type of the provided channel

Returns - typeID

name

The name of the provided channel

Returns - String

position

The position of the channel in its guild, if the channel is in a guild

Returns - ?Number

parentID

The id of the category its in

Returns - ?Number

topic

The topic of the channel provided

Returns - String

permissionOverwrites

The permission of the channel provided

Returns - Array

nsfw

Whether or not the provided channel is nsfw

Returns - Boolean

rateLimitPerUser

The ratelimit for each user

Returns - ?Number

Methods

send(message)

Send a message to the provided channel

Param

Required?

Description

message

true

The message to send to the channel.

Can be an embed object or just a string

Last updated