You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
channel has a .send method which sends a message to a channel. You don't have to worry about where the object comes from, but to see an example client.on('message',..) in index.js.
Should resolve true/false depending on whether the notification was a success or failure.
If you encapsulate this in a single file, put this in bot/components/notifier.js.
The text was updated successfully, but these errors were encountered:
Component responsible for sending messages back to a channel.
The function should roughly be defined as follows:
const notify(channel, message)
where
channel
is a TextChannel object from the Discord library.channel
has a.send
method which sends a message to a channel. You don't have to worry about where the object comes from, but to see an exampleclient.on('message',..)
inindex.js
.Should resolve true/false depending on whether the notification was a success or failure.
If you encapsulate this in a single file, put this in
bot/components/notifier.js
.The text was updated successfully, but these errors were encountered: