Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global slash commands not registering #3

Open
builderpepc opened this issue Mar 5, 2022 · 0 comments
Open

Global slash commands not registering #3

builderpepc opened this issue Mar 5, 2022 · 0 comments
Assignees
Labels
bug Something isn't working high priority

Comments

@builderpepc
Copy link
Contributor

With the current latest commit 853ca7d, the following error is raised a few seconds after startup:

Ignoring exception in on_ready
Traceback (most recent call last):
  File "C:\Users\...\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 352, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\...\Documents\CurfewBot\main.py", line 99, in on_ready
    await bot.sync_commands(bot.commands)
  File "C:\Users\...\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\bot.py", line 541, in sync_commands
    global_commands = [cmd for cmd in commands if cmd.guild_ids is None]
  File "C:\Users\...\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\bot.py", line 541, in <listcomp>
    global_commands = [cmd for cmd in commands if cmd.guild_ids is None]
AttributeError: 'Group' object has no attribute 'guild_ids'

Additionally, duplicate slash commands are created in the main PCS2024 server.

This may be a bug with Pycord itself.

@builderpepc builderpepc added bug Something isn't working high priority labels Mar 5, 2022
@builderpepc builderpepc pinned this issue Mar 5, 2022
@builderpepc builderpepc self-assigned this May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority
Projects
None yet
Development

No branches or pull requests

1 participant