Skip to content

Commit 46340fd

Browse files
committed
Merge branch 'master' into actx-option-properties
2 parents b1024cd + 81559cc commit 46340fd

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Warning: We have a feature freeze till release
2-
That means we won't accept new features for now. Only bug fixes.
1+
<!-- Warning: No new features will be merged until the next stable release. -->
32

43
## Summary
54

discord/bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,8 @@ async def sync_commands(
576576
guild_permissions: List = []
577577

578578
for i in commands:
579-
cmd = find(lambda cmd: cmd.name == i["name"] and cmd.type == i["type"] and cmd.guild_ids is not None
580-
and (i["guild_id"]) in cmd.guild_ids, self.pending_application_commands)
579+
cmd = find(lambda cmd: cmd.name == i["name"] and str(cmd.type) == str(i["type"]) and cmd.guild_ids is not None
580+
and int(i["guild_id"]) in cmd.guild_ids, self.pending_application_commands)
581581
if not cmd:
582582
# command has not been added yet
583583
continue

discord/commands/context.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,19 @@ async def _get_channel(self) -> Optional[InteractionChannel]:
9999

100100
async def invoke(self, command: ApplicationCommand[CogT, P, T], /, *args: P.args, **kwargs: P.kwargs) -> T:
101101
r"""|coro|
102+
102103
Calls a command with the arguments given.
103104
This is useful if you want to just call the callback that a
104105
:class:`.ApplicationCommand` holds internally.
106+
105107
.. note::
108+
106109
This does not handle converters, checks, cooldowns, pre-invoke,
107110
or after-invoke hooks in any matter. It calls the internal callback
108111
directly as-if it was a regular function.
109112
You must take care in passing the proper arguments when
110113
using this function.
114+
111115
Parameters
112116
-----------
113117
command: :class:`.ApplicationCommand`
@@ -159,7 +163,7 @@ def message(self) -> Optional[Message]:
159163
def user(self) -> Optional[Union[Member, User]]:
160164
return self.interaction.user
161165

162-
author = user
166+
author: Optional[Union[Member, User]] = user
163167

164168
@property
165169
def voice_client(self) -> Optional[VoiceProtocol]:

discord/voice_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,10 +757,10 @@ def start_recording(self, sink, callback, *args):
757757
def stop_recording(self):
758758
"""Stops the recording.
759759
Must be already recording.
760-
Raises
761760
762761
.. versionadded:: 2.1
763762
763+
Raises
764764
------
765765
RecordingException
766766
Not currently recording.

0 commit comments

Comments
 (0)