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

Probleme #26

Open
Toneri99 opened this issue May 17, 2023 · 0 comments
Open

Probleme #26

Toneri99 opened this issue May 17, 2023 · 0 comments

Comments

@Toneri99
Copy link

Hey i have a problem can you solve it fast pls
error:

Traceback (most recent call last):
File "C:\Users\sogho\Downloads\LinkGen-main\LinkGen-main\LinkGen.py", line 54, in
@client.slash_command(name="generate", guild_ids=[json.loads(open("config.json", "r").read())["guild_id"]])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sogho\AppData\Local\Programs\Python\Python311\Lib\site-packages\discord\bot.py", line 835, in decorator
result = command(kwargs)(func)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sogho\AppData\Local\Programs\Python\Python311\Lib\site-packages\discord\commands\core.py", line 1464, in decorator
return cls(func, attrs)
^^^^^^^^^^^^^^^^^^
File "C:\Users\sogho\AppData\Local\Programs\Python\Python311\Lib\site-packages\discord\commands\core.py", line 558, in init
super().init(func, *kwargs)
File "C:\Users\sogho\AppData\Local\Programs\Python\Python311\Lib\site-packages\discord\commands\core.py", line 141, in init
from ..ext.commands.cooldowns import CooldownMapping, BucketType, MaxConcurrency
File "C:\Users\sogho\AppData\Local\Programs\Python\Python311\Lib\site-packages\discord\ext\commands__init__.py", line 19, in
from .flags import
File "C:\Users\sogho\AppData\Local\Programs\Python\Python311\Lib\site-packages\discord\ext\commands\flags.py", line 73, in
@DataClass
^^^^^^^^^
File "C:\Users\sogho\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 1223, in dataclass
return wrap(cls)
^^^^^^^^^
File "C:\Users\sogho\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 1213, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sogho\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sogho\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'discord.utils._MissingSentinel'> for field name is not allowed: use default_factory

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