Skip to content

Commit 776dfc3

Browse files
authored
Merge branch 'master' into soundboard-permissions
2 parents 3bd902a + 05cf45e commit 776dfc3

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ These changes are available on the `master` branch, but have not yet been releas
5252
([#2595](https://github.com/Pycord-Development/pycord/pull/2595))
5353
- Fixed `BucketType.category` cooldown commands not functioning correctly in private
5454
channels. ([#2603](https://github.com/Pycord-Development/pycord/pull/2603))
55+
- Fixed `SlashCommand`'s `ctx` parameter couldn't be `Union` type.
56+
([#2611](https://github.com/Pycord-Development/pycord/pull/2611))
57+
- Fixed `TypeError` when passing `skus` parameter in `Client.entitlements()`.
58+
([#2627](https://github.com/Pycord-Development/pycord/issues/2627))
5559

5660
### Changed
5761

discord/commands/options.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
Thread,
4040
VoiceChannel,
4141
)
42+
from ..commands import ApplicationContext
4243
from ..enums import ChannelType
4344
from ..enums import Enum as DiscordEnum
4445
from ..enums import SlashCommandOptionType
@@ -227,6 +228,13 @@ def __init__(
227228
else:
228229
from ..ext.commands import Converter
229230

231+
if isinstance(input_type, tuple) and any(
232+
issubclass(op, ApplicationContext) for op in input_type
233+
):
234+
input_type = next(
235+
op for op in input_type if issubclass(op, ApplicationContext)
236+
)
237+
230238
if (
231239
isinstance(input_type, Converter)
232240
or input_type_is_class

discord/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3012,7 +3012,7 @@ def list_entitlements(
30123012
if user_id is not None:
30133013
params["user_id"] = user_id
30143014
if sku_ids is not None:
3015-
params["sku_ids"] = ",".join(sku_ids)
3015+
params["sku_ids"] = ",".join(str(sku_id) for sku_id in sku_ids)
30163016
if before is not None:
30173017
params["before"] = before
30183018
if after is not None:

docs/ext/bridge/api.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,16 @@ BridgeContext Subclasses
158158

159159
Alias of :data:`typing.Union` [ :class:`.BridgeExtContext`, :class:`.BridgeApplicationContext` ] for typing convenience.
160160

161-
Option
161+
Options
162162
------
163163

164-
BridgeOption
165-
~~~~~~~~~~~~
164+
Shortcut Decorators
165+
~~~~~~~~~~~~~~~~~~~
166+
.. autofunction:: discord.ext.bridge.bridge_option
167+
:decorator:
168+
169+
Objects
170+
~~~~~~~
166171

167172
.. attributetable:: discord.ext.bridge.BridgeOption
168173

0 commit comments

Comments
 (0)