You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(Args): ensure proper error types are always thrown (#601)
This changes the `result.unwrap()` calls to `result.unwrapRaw()` to
ensure that the erorr that gets thrown for the following methods:
- `args.pick(...)`
- `args.rest(...)`
- `args.repeat(...)`
- `args.peek(...)`
This makes it so that the error that ends up in `messageCommandError`
listener will have the proper error type. Furthermore, it can also
be handled properly when chaining `.catch()` calls to the `args.X` method.
resolves#528
0 commit comments