Open
Description
Describe the bug
As mentioned in the title, the usage of bulk-overwrite-guild-application-commands! will return 401. Instead, using bulk-overwrite-global-application-commands! will return nil.
Version Information
- Clojure Version: 1.10.3
- Discljord Version: 1.3.0
- OS bot is hosted on: Arch Linux
To Reproduce
Steps to reproduce the behavior:
- Create a slash command.
- Overwrite the guild application commands using
bulk-overwrite-guild-application-commands!
- See what it returns
Expected behavior
It overwrites the commands correctly
Logs
#error {
:cause Attempted to overwrite with invalid guild commands
:data {:message 401: Unauthorized, :code 0}
:via
[{:type clojure.lang.ExceptionInfo
:message Attempted to overwrite with invalid guild commands
:data {:message 401: Unauthorized, :code 0}
:at [discljord.messaging.impl$eval20723$fn__20725 invoke impl.clj 904]}]
:trace
[[discljord.messaging.impl$eval20723$fn__20725 invoke impl.clj 904]
[clojure.lang.MultiFn invoke MultiFn.java 239]
[discljord.messaging.impl$make_request_BANG_$make_request__21241 invoke impl.clj 1140]
[discljord.messaging.impl$make_request_BANG_ invokeStatic impl.clj 1145]
[discljord.messaging.impl$make_request_BANG_ invoke impl.clj 1119]
[discljord.messaging.impl$step_agent$fn__21265 invoke impl.clj 1190]
[clojure.core$binding_conveyor_fn$fn__5772 invoke core.clj 2037]
[clojure.lang.AFn applyToHelper AFn.java 154]
[clojure.lang.RestFn applyTo RestFn.java 132]
[clojure.lang.Agent$Action doRun Agent.java 114]
[clojure.lang.Agent$Action run Agent.java 163]
[java.util.concurrent.ThreadPoolExecutor runWorker ThreadPoolExecutor.java 1136]
[java.util.concurrent.ThreadPoolExecutor$Worker run ThreadPoolExecutor.java 635]
[java.lang.Thread run Thread.java 833]]}