You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: