fjodor-rybakov / discord-nestjs

👾 NestJS package for discord.js
MIT License
271 stars 49 forks source link

Reactive Example #869

Open Phoscur opened 2 years ago

Phoscur commented 2 years ago

Is your feature request related to a problem? Please describe. Hi, I am still exploring the Discord API and found myself lucky to stumble upon this project here, because I want to structure my bot source code better. While able to run some of the examples, I wish we had better documentation...

Describe the solution you'd like A reactive example and more introduction text for the existing samples.

What do I mean by a "reactive example"? I would like to test different ways of interacting with an existing ("reactive") message a bot previously sent and updating that message (and emoji-reactions on it - reset button?). E.g. The start command could be /party - It may include a reaction collector, which would count all reactions and update the message content with the measured amount until a certain limit, which updates to a success text.

-Can we also have predefined plain buttons to react instead of emojis?- Edit: yes :)

Describe alternatives you've considered Flesh out one of the existing examples a bit more with a guideline and structure overview...

Additional context

fjodor-rybakov commented 2 years ago

Hi! Registration by http work simple. First you should create a Subject. After need send next event to your subject. After all the subscription will call, which will register your commands.