Skip to content

Commit

Permalink
fix: NameError in interaction edge cases (#2402)
Browse files Browse the repository at this point in the history
* move guild import

* style(pre-commit): auto fixes from pre-commit.com hooks

* changelog

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
NeloBlivion and pre-commit-ci[bot] authored Mar 21, 2024
1 parent 6f1ad85 commit 7a6fcda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ These changes are available on the `master` branch, but have not yet been releas
([#2392](https://github.com/Pycord-Development/pycord/pull/2392))
- Fixed `Paginator.edit` to no longer set user to the bot.
([#2390](https://github.com/Pycord-Development/pycord/pull/2390))
- Fixed `NameError` in some instances of `Interaction`.
([#2402](https://github.com/Pycord-Development/pycord/pull/2402))

### Changed

Expand Down
2 changes: 1 addition & 1 deletion discord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
from .errors import ClientException, InteractionResponded, InvalidArgument
from .file import File
from .flags import MessageFlags
from .guild import Guild
from .member import Member
from .message import Attachment, Message
from .monetization import Entitlement
Expand Down Expand Up @@ -69,7 +70,6 @@
from .client import Client
from .commands import OptionChoice
from .embeds import Embed
from .guild import Guild
from .mentions import AllowedMentions
from .state import ConnectionState
from .threads import Thread
Expand Down

0 comments on commit 7a6fcda

Please sign in to comment.