Skip to content

Commit

Permalink
Merge pull request #3 from Lacosst0/detached3
Browse files Browse the repository at this point in the history
Fix fucking stupid circular import
  • Loading branch information
Lacosst0 authored Oct 31, 2023
2 parents 6e97ac1 + 1444a6a commit 3afdd09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/ui/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
from itertools import groupby
from typing import TYPE_CHECKING, Any, Callable, ClassVar, Iterator, Sequence

from .. import NotFound
from ..components import ActionRow as ActionRowComponent
from ..components import Button as ButtonComponent
from ..components import Component
Expand Down Expand Up @@ -403,6 +402,7 @@ async def on_timeout(self) -> None:
self.disable_all_items()
message = self._message or self.parent
if message:
from discord import NotFound
try:
m = await message.edit(view=self)
if m:
Expand Down

0 comments on commit 3afdd09

Please sign in to comment.