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

ImportError: cannot import name 'AppCommandOptionType' from 'discord.enums' #29

Open
Zertye opened this issue Nov 2, 2024 · 1 comment

Comments

@Zertye
Copy link

Zertye commented Nov 2, 2024

image_2024-11-02_110211158

@Zertye
Copy link
Author

Zertye commented Nov 2, 2024

2024-11-02 12:14:34 ERROR discord.ui.view Ignoring exception in view for item <Button style=<ButtonStyle.success: 3> url=None disabled=False label='Options' emoji= row=None sku_id=None>
Traceback (most recent call last):
File "C:\Users\nael\OneDrive\Desktop\parade 3\create.py", line 102, in ticketOptions
acategoryc = (50 - (len(acategory.channels)))
^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'channels'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\nael\OneDrive\Desktop\parade 3.venv\Lib\site-packages\discord\ui\view.py", line 430, in _scheduled_task
await item.callback(interaction)
File "C:\Users\nael\OneDrive\Desktop\parade 3\create.py", line 181, in ticketOptions
await web.send(embed=embed)
^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'send'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant