Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

🐛 'THREADS_ENABLED' is not a valid GuildFeature #366

Closed
Sigmanificient opened this issue Jan 10, 2022 · 0 comments · Fixed by #367
Closed

🐛 'THREADS_ENABLED' is not a valid GuildFeature #366

Sigmanificient opened this issue Jan 10, 2022 · 0 comments · Fixed by #367
Labels
bug Something isn't working easy issue isn't hard to resolve

Comments

@Sigmanificient
Copy link
Member

Sigmanificient commented Jan 10, 2022

Describe the bug

future: <Task finished name='Task-1' coro=<update_channels() done, defined at /home/container/mcoding_bot/tasks/update_channels.py:79> exception=ValueError("'THREADS_ENABLED' is not a valid GuildFeature")>
Traceback (most recent call last):
  File "/home/container/mcoding_bot/tasks/update_channels.py", line 90, in update_channels
    await self.get_guild(self.config.mcoding_server, with_count=True)
  File "/home/container/venv/lib/python3.8/site-packages/pincer/client.py", line 888, in get_guild
    return await Guild.from_id(self, guild_id, with_count)
  File "/home/container/venv/lib/python3.8/site-packages/pincer/objects/guild/guild.py", line 445, in from_id
    return Guild.from_dict(data)
  File "/home/container/venv/lib/python3.8/site-packages/pincer/objects/guild/guild.py", line 1912, in from_dict
    return super().from_dict(data)
  File "/home/container/venv/lib/python3.8/site-packages/pincer/utils/api_object.py", line 304, in from_dict
    return cls(
  File "<string>", line 63, in __init__
  File "/home/container/venv/lib/python3.8/site-packages/pincer/utils/api_object.py", line 250, in __post_init__
    attr_value = [
  File "/home/container/venv/lib/python3.8/site-packages/pincer/utils/api_object.py", line 251, in <listcomp>
    self.__attr_convert(attr_item, classes[0])
  File "/home/container/venv/lib/python3.8/site-packages/pincer/utils/api_object.py", line 213, in __attr_convert
    return factory(attr_value)
  File "/usr/local/lib/python3.8/enum.py", line 339, in __call__
    return cls.__new__(cls, value)
  File "/usr/local/lib/python3.8/enum.py", line 662, in __new__
    raise ve_exc
ValueError: 'THREADS_ENABLED' is not a valid GuildFeature

Pincer Version used

0.15.2

@Sigmanificient Sigmanificient added the bug Something isn't working label Jan 10, 2022
@Sigmanificient Sigmanificient changed the title 🐛 🐛 'THREADS_ENABLED' is not a valid GuildFeature Jan 10, 2022
@Sigmanificient Sigmanificient added the easy issue isn't hard to resolve label Jan 10, 2022
@Sigmanificient Sigmanificient linked a pull request Jan 10, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working easy issue isn't hard to resolve
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants