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

issue with example from ur site #1

Open
sionka5 opened this issue Dec 4, 2022 · 0 comments
Open

issue with example from ur site #1

sionka5 opened this issue Dec 4, 2022 · 0 comments

Comments

@sionka5
Copy link

sionka5 commented Dec 4, 2022

Traceback (most recent call last):
File "C:\Users\sionk\Desktop\Hydrant\main.py", line 37, in
bot.load_extension("test_application_commands")
File "C:\Users\sionk\AppData\Local\Programs\Python\Python310\lib\site-packages\naff\client\client.py", line 1887, in load_extension
module = importlib.import_module(module_name, package)
File "C:\Users\sionk\AppData\Local\Programs\Python\Python310\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\Users\sionk\Desktop\Hydrant\test_application_commands.py", line 4, in
class CommandsExampleSkin(Extension):
File "C:\Users\sionk\Desktop\Hydrant\test_application_commands.py", line 8, in CommandsExampleSkin
async def command(self, ctx: InteractionContext, **kwargs):
File "C:\Users\sionk\AppData\Local\Programs\Python\Python310\lib\site-packages\naff\models\naff\application_commands.py", line 715, in wrapper
cmd = SlashCommand(
File "", line 14, in init
File "C:\Users\sionk\AppData\Local\Programs\Python\Python310\lib\site-packages\naff\models\discord\snowflake.py", line 53, in to_snowflake_list
return [to_snowflake(c) for c in snowflakes]
TypeError: 'int' object is not iterable

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