From 741851b1e841278f886ca10692b39936ce1883b7 Mon Sep 17 00:00:00 2001 From: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Date: Thu, 1 Feb 2024 21:06:33 +0300 Subject: [PATCH] fix: add `entitlements` to slots of `Interaction` (#2345) * fix: add entitlements to slots * chore: add changelog entry * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- CHANGELOG.md | 3 +++ discord/interactions.py | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9210527012..ced04899ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -232,6 +232,9 @@ These changes are available on the `master` branch, but have not yet been releas ([#2337](https://github.com/Pycord-Development/pycord/pull/2337)) - Fixed `TypeError` due to `(Sync)WebhookMessage._thread_id` being set to `None`. ([#2343](https://github.com/Pycord-Development/pycord/pull/2343)) +- Fixed `AttributeError` due to `entitlements` not being included in + `Interaction.__slots__`. + ([#2345](https://github.com/Pycord-Development/pycord/pull/2345)) ## [2.4.1] - 2023-03-20 diff --git a/discord/interactions.py b/discord/interactions.py index 6443af1c04..0e254d514a 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -148,6 +148,7 @@ class Interaction: "token", "version", "custom_id", + "entitlements", "_channel_data", "_message_data", "_guild_data",