Skip to content

Commit

Permalink
fix(threads): move runtime import required for `Thread.permissions_fo…
Browse files Browse the repository at this point in the history
…r` (#1124)
  • Loading branch information
shiftinv committed Oct 30, 2023
1 parent 43d236e commit 913525c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/1123.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix :meth:`Thread.permissions_for` not working in some cases due to an incorrect import.
2 changes: 1 addition & 1 deletion disnake/threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from .flags import ChannelFlags
from .mixins import Hashable
from .partial_emoji import PartialEmoji, _EmojiTag
from .permissions import Permissions
from .utils import MISSING, _get_as_snowflake, _unique, parse_time, snowflake_time

__all__ = (
Expand All @@ -31,7 +32,6 @@
from .guild import Guild
from .member import Member
from .message import Message, PartialMessage
from .permissions import Permissions
from .role import Role
from .state import ConnectionState
from .types.snowflake import SnowflakeList
Expand Down

0 comments on commit 913525c

Please sign in to comment.