Skip to content

Commit 7a6fcda

Browse files
fix: NameError in interaction edge cases (Pycord-Development#2402)
* 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>
1 parent 6f1ad85 commit 7a6fcda

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ These changes are available on the `master` branch, but have not yet been releas
2626
([#2392](https://github.com/Pycord-Development/pycord/pull/2392))
2727
- Fixed `Paginator.edit` to no longer set user to the bot.
2828
([#2390](https://github.com/Pycord-Development/pycord/pull/2390))
29+
- Fixed `NameError` in some instances of `Interaction`.
30+
([#2402](https://github.com/Pycord-Development/pycord/pull/2402))
2931

3032
### Changed
3133

discord/interactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from .errors import ClientException, InteractionResponded, InvalidArgument
3535
from .file import File
3636
from .flags import MessageFlags
37+
from .guild import Guild
3738
from .member import Member
3839
from .message import Attachment, Message
3940
from .monetization import Entitlement
@@ -69,7 +70,6 @@
6970
from .client import Client
7071
from .commands import OptionChoice
7172
from .embeds import Embed
72-
from .guild import Guild
7373
from .mentions import AllowedMentions
7474
from .state import ConnectionState
7575
from .threads import Thread

0 commit comments

Comments
 (0)