Skip to content

Commit 7e01223

Browse files
authored
Merge pull request #1665 from interactions-py/unstable
5.12.0
2 parents 1a7de56 + 92044a8 commit 7e01223

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+3929
-250
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ __pycache__
1818
/coverage.xml
1919
/TestResults.xml
2020
/.coverage
21+
.mypy_cache/

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ repos:
3030
- id: check-merge-conflict
3131
name: Merge Conflicts
3232
- repo: https://github.com/astral-sh/ruff-pre-commit
33-
rev: 'v0.1.5'
33+
rev: 'v0.3.2'
3434
hooks:
3535
- id: ruff
3636
args: [--fix, --exit-non-zero-on-fix]
3737
- repo: https://github.com/psf/black
38-
rev: 23.11.0
38+
rev: 24.2.0
3939
hooks:
4040
- id: black
4141
name: Black Formatting

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![](https://img.shields.io/pypi/dm/discord-py-slash-command.svg?logo=python&label=Downloads)](https://pypi.org/project/discord-py-interactions/)
99

1010
[![](https://img.shields.io/badge/Code%20Style-black-000000.svg)](https://github.com/psf/black)
11-
[![License](https://img.shields.io/badge/License-GPL-blue)](https://github.com/interactions-py/interactions.py/blob/stable/LICENSE)
11+
[![License](https://img.shields.io/badge/License-MIT-blue)](https://github.com/interactions-py/interactions.py/blob/stable/LICENSE)
1212

1313
[![](https://img.shields.io/badge/Docs-latest-x?logo=readthedocs)](https://interactions-py.github.io/interactions.py/)
1414
[![](https://img.shields.io/badge/Guides-latest-x?logo=readthedocs)](https://interactions-py.github.io/interactions.py/Guides/01%20Getting%20Started)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: interactions.models.discord.entitlement

docs/src/API Reference/API Reference/models/Discord/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ search:
1414
- [Components](components)
1515
- [Embed](embed)
1616
- [Emoji](emoji)
17+
- [Entitlement](entitlement)
1718
- [Enums](enums)
1819
- [File](file)
1920
- [Guild](guild)

docs/src/Guides/03 Creating Commands.md

Lines changed: 103 additions & 50 deletions
Large diffs are not rendered by default.

docs/src/Guides/05 Components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ When responding to a component you need to satisfy Discord either by responding
193193

194194
You can also use this to check for a normal message instead of a component interaction.
195195

196-
For more information, please visit the API reference [here](/interactions.py/API Reference/API Reference/client/#interactions.client.client.Client.wait_for_component).
196+
For more information, please visit the API reference [here](/interactions.py/API Reference/API Reference/Client/#interactions.client.Client.wait_for_component).
197197

198198

199199
=== ":two: Persistent Callback: `@listen()`"

docs/src/Guides/25 Error Tracking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ And this is great when debugging. But it consumes your rate limit, can run into
3636

3737
interactions.py contains built-in support for Sentry.io, a cloud error tracking platform.
3838

39-
To enable it, call `bot.load_extension('interactions.ext.sentry', token=SENTRY_TOKEN)` as early as possible in your startup. (Load it before your own extensions, so it can catch intitialization errors in those extensions)
39+
To enable it, call `bot.load_extension('interactions.ext.sentry', dsn=SENTRY_DSN)` as early as possible in your startup. Load this extension before your own extensions, so it can catch intitialization errors in those extensions. `SENTRY_DSN` is provided by your Sentry.io project and should look something like `https://[email protected]/1048576`.
4040

4141
# What does this do that vanilla Sentry doesn't?
4242

interactions/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
EmbedField,
130130
EmbedFooter,
131131
EmbedProvider,
132+
Entitlement,
132133
ExplicitContentFilterLevel,
133134
Extension,
134135
File,
@@ -223,6 +224,11 @@
223224
NoArgumentConverter,
224225
NSFWLevel,
225226
open_file,
227+
Onboarding,
228+
OnboardingMode,
229+
OnboardingPrompt,
230+
OnboardingPromptOption,
231+
OnboardingPromptType,
226232
OptionType,
227233
OrTrigger,
228234
OverwriteType,
@@ -455,6 +461,7 @@
455461
"EmbedField",
456462
"EmbedFooter",
457463
"EmbedProvider",
464+
"Entitlement",
458465
"errors",
459466
"events",
460467
"ExplicitContentFilterLevel",
@@ -562,6 +569,11 @@
562569
"NoArgumentConverter",
563570
"NSFWLevel",
564571
"open_file",
572+
"Onboarding",
573+
"OnboardingMode",
574+
"OnboardingPrompt",
575+
"OnboardingPromptOption",
576+
"OnboardingPromptType",
565577
"OptionType",
566578
"OrTrigger",
567579
"OverwriteType",

interactions/api/events/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
ChannelDelete,
1313
ChannelPinsUpdate,
1414
ChannelUpdate,
15+
EntitlementCreate,
16+
EntitlementDelete,
17+
EntitlementUpdate,
1518
GuildAuditLogEntryCreate,
1619
GuildAvailable,
1720
GuildEmojisUpdate,
@@ -41,6 +44,7 @@
4144
MessageReactionAdd,
4245
MessageReactionRemove,
4346
MessageReactionRemoveAll,
47+
MessageReactionRemoveEmoji,
4448
MessageUpdate,
4549
NewThreadCreate,
4650
PresenceUpdate,
@@ -120,6 +124,9 @@
120124
"ComponentError",
121125
"Connect",
122126
"Disconnect",
127+
"EntitlementCreate",
128+
"EntitlementDelete",
129+
"EntitlementUpdate",
123130
"Error",
124131
"ExtensionCommandParse",
125132
"ExtensionLoad",
@@ -155,6 +162,7 @@
155162
"MessageReactionAdd",
156163
"MessageReactionRemove",
157164
"MessageReactionRemoveAll",
165+
"MessageReactionRemoveEmoji",
158166
"MessageUpdate",
159167
"ModalCompletion",
160168
"ModalError",

0 commit comments

Comments
 (0)