coding-buddies-discord / cb-bots

4 stars 3 forks source link

Differentiate between "message" and "interaction" #43

Open cubiquitous opened 2 years ago

cubiquitous commented 2 years ago

In DiscordJS interactions are a specific type of message. from they docs:

An Interaction is the message that your application receives when a user uses an application command or a message component.

For Slash Commands, it includes the values that the user submitted.

For User Commands and Message > Commands, it includes the resolved user or message on which the action was taken.

For Message Components it includes identifying information about the component that was used.

So those aren't regular messages sent by the user. those have specific meaning and behave differently from regular messages. yet, right now we're calling regular messages "interactions".

in help command: helpCommand in help command: image

My proprosal here is simple: rename the "interaction" named messages to the proper "message" messages. this is to avoid confusion in which type of function is.