Files
awesome-plugins/plugins/disable.ts
Peter-MJ-Parker f5923ecd0b chore: update disable.ts (#110)
Noticed a few bugs.
1) Changed invalid import from discord.js. Implicitly had an any type for `onFail`.
```diff
-ReplyMessageOptions
+MessageReplyOptions
```
2) Corrected the improper catching of errors by implementing try/catch blocks. Included more detailed error responses.
3) Default reply for slash with onFail inputted was invalid because it could also be a string.
2024-02-23 11:18:10 -06:00

2.1 KiB