The onSuccess Function

The onSuccess function is optional, and will execute before the command is run like the "onError" function, but unlike that function, this one is non-blocking, and will just execute the provided code before the command is run.

Parameter Types

  • message: import("discord.js").Message