diff --git a/changes/1560.bugfix.md b/changes/1560.bugfix.md new file mode 100644 index 0000000000..7494e2579e --- /dev/null +++ b/changes/1560.bugfix.md @@ -0,0 +1 @@ +Pyright will now let you pass `role_mentions` and `user_mentions` to `InteractionMessageBuilder.__init__`. diff --git a/hikari/impl/special_endpoints.py b/hikari/impl/special_endpoints.py index 18ba761bf6..516a851d13 100644 --- a/hikari/impl/special_endpoints.py +++ b/hikari/impl/special_endpoints.py @@ -1006,10 +1006,10 @@ class InteractionMessageBuilder(special_endpoints.InteractionMessageBuilder): ) _role_mentions: undefined.UndefinedOr[ typing.Union[snowflakes.SnowflakeishSequence[guilds.PartialRole], bool] - ] = attr.field(default=undefined.UNDEFINED, kw_only=True) + ] = attr.field(alias="role_mentions", default=undefined.UNDEFINED, kw_only=True) _user_mentions: undefined.UndefinedOr[ typing.Union[snowflakes.SnowflakeishSequence[users.PartialUser], bool] - ] = attr.field(default=undefined.UNDEFINED, kw_only=True) + ] = attr.field(alias="user_mentions", default=undefined.UNDEFINED, kw_only=True) _attachments: undefined.UndefinedNoneOr[typing.List[files.Resourceish]] = attr.field( alias="attachments", default=undefined.UNDEFINED, kw_only=True )