How can I find out what events there are, and what the args are?

For example, MentionPrefixOnly has run(message: msg), but what does anything else have? I have tried creating a listener for adding reactions but I am unsure if this is the proper syntax. sapphire generate listener generates a listener different than the default MentionPrefixOnly listener. I have tried scouring the documentation but I cannnot find anything relating to the arguments of run(). Thank you!
Solution:
messageReactionAdd is a DiscordJS event so the payload is on https://discord.js.org/docs/packages/discord.js/14.14.1/Client:Class#messageReactionAdd
discord.js | Client
The main hub for interacting with the Discord API, and the starting point for any bot.
Jump to solution
5 Replies
Favna
Favna11mo ago
list of all events: https://www.sapphirejs.dev/docs/Documentation/api-framework/#events as for their args, that isn't really documented directly but they're generally always payloads so for example for one of the events it's https://www.sapphirejs.dev/docs/Documentation/api-framework/interfaces/ChatInputCommandAcceptedPayload and you can reason sort of from the list of interfaces.
Songbird
SongbirdOP11mo ago
could you give an example for MessageReactionAdded? I can't even find an equivalent payload for that event. I feel like this is such a noob question but usually I'm better about these types of things lol searching the name doesn't even show up anywhere on the docs
Solution
Favna
Favna11mo ago
messageReactionAdd is a DiscordJS event so the payload is on https://discord.js.org/docs/packages/discord.js/14.14.1/Client:Class#messageReactionAdd
discord.js | Client
The main hub for interacting with the Discord API, and the starting point for any bot.
Songbird
SongbirdOP11mo ago
OHHHH okay I think I am understanding how this all works now lmfao
Songbird
SongbirdOP11mo ago
thank you :)
Want results from more Discord servers?
Add your server