Skip to content

issue with example from ur site #1

@sionka5

Description

@sionka5

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions