Skip to main content

๐Ÿ”” Events

Via discord.js we can handle a lot of events, for example we can send a welcome message when someone joins a guild, react when someone writes a message, clicks on a boton or whatever.

When you create a module, you can easly handle this events with a simple folder. In fact, if you create a buttons folder, each file created inside will be imported as a handler for a discord button but we will see it in few minutes but before it we have to talk about tasks, init.js ands models.