Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
fix💥: interaction_id should be int... like all other IDs (#709)
Browse files Browse the repository at this point in the history
dammit past polls
  • Loading branch information
LordOfPolls authored Oct 31, 2022
1 parent e05b6cc commit 2461495
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion naff/models/naff/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ class _BaseInteractionContext(Context):
_context_type: int = attrs.field(
repr=False,
) # we don't want to convert this in case of a new context type, which is expected
interaction_id: str = attrs.field(repr=False, default=None, metadata=docs("The id of the interaction"))
interaction_id: "Snowflake_Type" = attrs.field(
repr=False, default=None, metadata=docs("The id of the interaction"), converter=to_snowflake
)
target_id: "Snowflake_Type" = attrs.field(
default=None,
metadata=docs("The ID of the target, used for context menus to show what was clicked on"),
Expand Down

0 comments on commit 2461495

Please sign in to comment.