I am coding a Discord bot in which I want to do the command !quote
and it will pull a random message of of out of a specific channel with id quotesID
(that may or may not be a different channel that !quote
was sent in). I keep looking through the documentation for Discord.js but I can't find a way to get a TextChannel by its ID and then use a TextChannels .messages
function and thus get the MessageManager and then a collection of the messages.
I know I can get the guild using msg.guild
(where msg
is the trigger with !quote
) or get the tex
I am new to JavaScript and Discord.js so any info helps. (I am using Discord.js version 12.2.0)