Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifier 🔊 #22

Open
samuelsogbesan opened this issue Feb 16, 2021 · 2 comments
Open

Notifier 🔊 #22

samuelsogbesan opened this issue Feb 16, 2021 · 2 comments
Assignees
Labels
Bot PRs that update the Discord API

Comments

@samuelsogbesan
Copy link
Owner

samuelsogbesan commented Feb 16, 2021

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 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.

@samuelsogbesan samuelsogbesan added the Bot PRs that update the Discord API label Feb 16, 2021
@bailscodesstuff
Copy link
Collaborator

i think i done it

@samuelsogbesan
Copy link
Owner Author

@bailslearnsstuff can u link this issue to ur PR by added "closes #22" in the description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot PRs that update the Discord API
Projects
None yet
Development

No branches or pull requests

2 participants