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
Describe the bug
Exceptional responses from the messaging namespace are not wrapped in ex-info, preventing exception handling on Discord errors.
Version Information
Clojure Version: 1.11.0-alpha3
Discljord Version: 1.3.0
OS bot is hosted on: Arch, btw
To Reproduce
Do something incorrectly, like discljord.messaging/edit-original-interaction-response! with a bad payload, the error body comes back from Discord, but as a map.
Expected behavior
Exceptional responses to be wrapped in an ex-info
Additional Context @IGJoshua mentioned the problem is in
Describe the bug
Exceptional responses from the messaging namespace are not wrapped in
ex-info
, preventing exception handling on Discord errors.Version Information
To Reproduce
Do something incorrectly, like
discljord.messaging/edit-original-interaction-response!
with a bad payload, the error body comes back from Discord, but as a map.Expected behavior
Exceptional responses to be wrapped in an
ex-info
Additional Context
@IGJoshua mentioned the problem is in
https://github.com/discljord/discljord/blob/master/src/discljord/messaging/impl.clj#L104-L114
Where
def-message-dispatch
is failing to ex-info, not any particular endpoint.The text was updated successfully, but these errors were encountered: