How do I write code that performs commands to other channels with '.addChannelOption'?
If I write a command from an administrator channel to another channel, how do I make the command run on a channel other than the administrator channel?
2 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
You'd get the channel from the option using <Interaction>.options.getChannel("
option_name
") and that'd be a channel, you can define it as a variable, let's say exampleChannel
, and then you can use channel properties and methods on it like exampleChannel.send()