channel

Constructor

new Channel(channeldata, client)

Properties

id

The id of the provided channel

Returns - Numberarrow-up-right

recipients

The recipients of the channel in dms, if any

Returns - Array<userObjectarrow-up-right>

lastMessageID

The id of the last sent message, if any

Returns - ?Numberarrow-up-right

type

The type of the provided channel

Returns - typeIDarrow-up-right

name

The name of the provided channel

Returns - Stringarrow-up-right

position

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

Returns - ?Numberarrow-up-right

parentID

The id of the category its in

Returns - ?Numberarrow-up-right

topic

The topic of the channel provided

Returns - Stringarrow-up-right

permissionOverwrites

The permission of the channel provided

Returns - Arrayarrow-up-right

nsfw

Whether or not the provided channel is nsfw

Returns - Booleanarrow-up-right

rateLimitPerUser

The ratelimit for each user

Returns - ?Numberarrow-up-right

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