8000 bulk-overwrite-guild-application-commands! returning 401 · Issue #101 · discljord/discljord · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
bulk-overwrite-guild-application-commands! returning 401 #101
Open
@Jimmysit0

Description

@Jimmysit0

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:

  1. Create a slash command.
  2. Overwrite the guild application commands using bulk-overwrite-guild-application-commands!
  3. 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]]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug reportReported, but unconfirmed bugs.cannot reproduceBugs that have been tested but can't be found

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0