Channel
You are in the channel which is in the guild
Field
Field
Description
.Channel.Name
The name of the channel.
.Channel.ID
The ID of the channel.
.Channel.ParentID
The ID of the channel's parent (category), returns 0 if none.
.Channel.Topic
The topic of the channel.
.Channel.NSFW
Outputs whether this channel is NSFW or not.
Function
Function
Description
editChannelName
channel "newName"
Function edits channel's name. channel
can be either ID, "name" or even nil
if triggered in that channel name change is intended to happen. "newName"
has to be of type string. For example >{{editChannelName nil (joinStr "" "YAG - " (randInt 1000))}}
editChannelTopic channel "newTopic"
Function edits channel's topic/description. channel
can be either ID, "name" or even nil
if triggered in that channel name change is intended to happen. "newTopic"
has to be of type string. For example >
{{editChannelTopic nil "YAG is cool"}}
getChannel channel
Function returns full channel object of given channel
argument which can be either it's ID, name or nil
for triggering channel, and is of type *dstate.ChannelState. For example > {{(getChannel nil).Name}}
returns the name of the channel command was triggered in.
Channel object in Discord documentation (read this if you want to write complex codes).
Last updated
Was this helpful?