#Discord no slash commands

1 messages · Page 1 of 1 (latest)

ivory basin
#

Hello, I've set up bot in server, got 2 issues:

  • no slash commands, "/" doesnt show hermes-speific commands
  • I have to create thread to talk with agent.

Agent logged this, and mentioned discord has 8000 char limit, 75 skills doesnt fit in it:

In group 'skill' defined in module 'gateway.platforms.discord'
  Command exceeds maximum size (8000)
glass rapids
#

UI wise though, it doesn't always populate the slash command UI thing on discord, which is annoying.

plush bobcat
#

can also confirm slash commands working for me, can you try resetting your gateway and agent?

ivory basin
#

or let me just nuke server and let you guys know

plush bobcat
ivory basin
#

noppers, after fresh server, fresh app, discord doesnt show slash commands. opencllaw was showing before.

winter island
#

I'm seeing the same error in my logs and still see my old OpenClaw slash commands in discord. I just installed yesterday for the first time.

Apr 15 15:02:16 cleobox python[49616]: WARNING gateway.platforms.discord: [Discord] Slash command sync failed: Failed t>
Apr 15 15:02:16 cleobox python[49616]: In group 'skill' defined in module 'gateway.platforms.discord'
Apr 15 15:02:16 cleobox python[49616]:   Command exceeds maximum size (8000)
Apr 15 15:02:16 cleobox python[49616]: Traceback (most recent call last):
Apr 15 15:02:16 cleobox python[49616]:   File "/home/craig/.hermes/hermes-agent/gateway/platforms/discord.py", line 709>
Apr 15 15:02:16 cleobox python[49616]:     synced = await asyncio.wait_for(self._client.tree.sync(), timeout=30)
Apr 15 15:02:16 cleobox python[49616]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 15 15:02:16 cleobox python[49616]:   File "/home/craig/.local/share/uv/python/cpython-3.11.15-linux-aarch64-gnu/lib>
Apr 15 15:02:16 cleobox python[49616]:     return fut.result()
Apr 15 15:02:16 cleobox python[49616]:            ^^^^^^^^^^^^
Apr 15 15:02:16 cleobox python[49616]:   File "/home/craig/.hermes/hermes-agent/venv/lib/python3.11/site-packages/disco>
Apr 15 15:02:16 cleobox python[49616]:     raise CommandSyncFailure(e, commands) from None
Apr 15 15:02:16 cleobox python[49616]: discord.app_commands.errors.CommandSyncFailure: Failed to upload commands to Dis>
Apr 15 15:02:16 cleobox python[49616]: In group 'skill' defined in module 'gateway.platforms.discord'
Apr 15 15:02:16 cleobox python[49616]:   Command exceeds maximum size (8000)
ivory basin