https://pypi.org/project/py-cord/2.5.0
What's Changed
- feat: Bridge Command Events by @OmLanke in #1916
- fix: SlashCommandGroup.walk_commands() error by @krishnans2006 in #1838
- docs: add missing changelog and fix stage_raise_hand grammar by @JustaSqu1d in #1924
- fix: change Colour.embed_background() colors to correspond to new colors by @TheGiga in #1931
- feat: Implement audit log events by @NeloBlivion in #1932
- fix(misc): RawAuditLogEntryEvent fixes by @NeloBlivion in #1937
- feat: Move additional event handler functionality to
Client
by @davidhozic in #1907 - fix: UnboundLocalError by @OmLanke in #1928
- fix: AttributeErrors from event handler move by @NeloBlivion in #1946
- feat: add
once
decorator todiscord.Client
by @OmLanke in #1940 - chore(docs): add missing decorator in examples by @JustaSqu1d in #1950
- feat: Support for text in stage by @NeloBlivion in #1936
- fix: ip discovery changes (74 byte udp packets) by @Lulalaby in #1955
- fix: pass
reason
to the correct method in AutoModRule by @OmLanke in #1960 - docs: fix message_content missing subject by @JustaSqu1d in #1975
- feat: add current_page parameter to paginator.update() by @DefiDebauchery in #1983
- feat!: one time event listeners by @OmLanke in #1957
- feat(ApplicationFlags): add application_auto_moderation_rule_create_badge by @JustaSqu1d in #1992
- fix: attribute error with listeners in cogs by @OmLanke in #1989
- fix(scheduled_events): location editing breaking by @Middledot in #1998
- fix: bridge command group name by @OmLanke in #2000
- fix: add None support for ClientUser edit by @ItsRqtl in #1994
- docs: fix typo in .send docstring by @Lacosst0 in #2007
- chore: update file upload size limit by @JustaSqu1d in #2014
- chore(docs): revert removal of custom search scoring by @BobDotCom in #2019
- fix(ext.bridge): Bridge options & bool converter breaking sometimes by @Middledot in #1999
- feat: suppress FFMPEG output by @OmLanke in #1993
- feat: add new parameters to
discord.Embed
by @davidhozic in #1996 - feat: Add possibility to start bot via async context manager by @Snawe in #1801
- fix: store message in view when sent using webhook or when message is edited by @OmLanke in #1997
- fix: webhook message editing on forums missing thread_id by @qoft in #1981
- feat: Add custom_message to AutoModActionMetadata and fix TypeError on AutoModRule by @NeloBlivion in #2029
- docs(changelog): add missing changelog by @Lulalaby in #2031
- docs: add a link to guild features by @JustaSqu1d in #2028
- feat: voice message support by @Lulalaby in #2016
- feat: Add data attribute to all raw event payloads by @NeloBlivion in #2023
- feat: Move ctx.respond to Interaction and implement Interaction.edit by @NeloBlivion in #2026
- feat: Received Interactions come with a channel object by @NeloBlivion in #2025
- fix: Improve Automod compatibility with Audit Logs + minor fixes by @NeloBlivion in #2030
- docs: update thread edit docs by @plun1331 in #2034
- fix!: Reflect the api for getting bans correctly by @Lulalaby in #1922
- feat: Add synchronization to start of audio recordings by @OmLanke in #1984
- chore!: move configs to global .github by @Lulalaby in #2041
- feat!: Add
view.parent
and storeview.message
on receiving Interaction for a component by @OmLanke in #2036 - fix(docs): Fix readthedocs build failures by @BobDotCom in #2046
- fix(ext.bridge): Handle BridgeCommand while unloading cogs by @OmLanke in #2048
- docs: clarify defer's ephemeral arg by @JustaSqu1d in #2053
- docs: Document @option.parameter_name by @NeloBlivion in #2054
- fix: Restore overriding on_application_command_error via listener by @NeloBlivion in #2044
- feat(ext.bridge): add walk command functions & dynamically fetch attrs in commands variants by @Middledot in #1867
- docs: clarify autocomplete docs by @JustaSqu1d in #2055
- chore(i18n): change localization attributes' defaults (#1866) by @Middledot in #2056
- fix: add defaults to __init__s on embed classes by @plun1331 in #2061
- chore!: "fix: add defaults to __init__s on embed classes" by @Lulalaby in #2062
- refactor!: embed classes by @OmLanke in #2063
- docs: mark Client.get_or_fetch_user() as a coro by @Sengolda in #2069
- chore(actions): bump ribtoks/tdg-github-action to v0.4.7-beta by @Lulalaby in #2067
- fix: embeds having weird state by @UP929312 in #2071
- fix: KeyError when using method 'individual' by @doluk in #1925
- docs: remove
@client.once()
by @OmLanke in #2073 - feat!: pomelo by @Lulalaby in #2042
- fix: Make AuditLogEntry user/user_id optional by @NeloBlivion in #2079
- docs(changelog): log username change by @Dorukyum in #2085
- feat: Add icon and unicode_emoji to Guild.create_role by @NeloBlivion in #2086
- fix: Adjust default_avatar behavior depending on username by @NeloBlivion in #2087
- fix: channel id might be null by @Lulalaby in #2078
- fix: creating forum threads with files by @elliotcubit in #2075
- fix: wrong type hint
Sink.vc
by @XXMA16 in #2090 - feat!: Client.on_error() improvement with new parameter by @mariohero24 in #1945
- chore: cleanup
audio_recording_merged
example by @OmLanke in #2093 - fix: changelog entry in wrong section by @Lulalaby in #2092
- fix: default avatar % 6 if migrated by @NyuwBot in #2100
- fix: command_prefix and help_command typehints by @Dorukyum in #2099
- feat: add new embedded activities by @JustaSqu1d in #2102
- revert: #1945 by @plun1331 in #2103
- fix: values access before interaction by @plun1331 in #2104
- fix: #1805 by @Nzii3 in #1806
- docs: fix broken link by @JustaSqu1d in #2108
- fix:
KeyError
inEmbedMedia
by @OmLanke in #2109 - feat(ext.bridge): add
bridge.Context
as a Union class by @OmLanke in #2106 - fix: Flags again... by @NeloBlivion in #2111
- feat: Add
cooldown
andmax_concurrency
toSlashCommandGroup
by @OmLanke in #2091 - feat: handle typing.Annotated form annotations in slash commands option parser. by @afroemming in #2124
- fix: Correct regression from pull #2124 by @afroemming in #2126
- docs: Change color to colour by @Sengolda in #2132
- feat: add
suppress
andallowed_mentions
parameters by @OmLanke in #2138 - fix: update thread applied tags by @Dorukyum in #2146
- fix: always set Guild._member_count by @NeloBlivion in #2145
- fix: run only local hooks for
SlashCommandGroup
by @OmLanke in #2139 - fix: properly type ApplicationContext.author by @Yuki-42 in #2148
- chore(actions): disable codecov by @NyuwBot in #2150
- fix: add missing delete_after parameter by @Seltsamsel in #2156
- refactor: Remove un-needed logic in EqualityComparable.ne by @Sengolda in #2158
- fix:
ScheduledEvent.creator_id
returning incorrect type by @JustaSqu1d in #2162 - fix: basic_autocomplete values can be Iterable[OptionChoice] by @CarrotManMatt in #2164
- refactor: Purge all un needed ne methods by @Sengolda in #2159
- feat: add creator monetization-related audit log action types by @JustaSqu1d in #2171
- refactor: replace orjson support with msgspec by @VincentRPS in #2170
- feat(actions): version-updates.yml by @Lulalaby in #2182
- fix: thread creation payload by @VincentRPS in #2191
- fix: misplaced payload object by @Lulalaby in #2192
- feat: add missing setters for Embed properties by @OmLanke in #2198
- fix: #2198 by @Lulalaby in #2201
- feat: VoiceClient.play wait_finish parameter for awaiting end of stream by @davidhozic in #2194
- feat: add support for custom status by @Dorukyum in #2206
- feat: Add
Guild.delete_auto_moderation_rule
by @llamaair in #2153 - fix: DMChannel.recipient and User.dm_channel being None after calling User.create_dm by @davidhozic in #2219
- docs: Update CHANGELOG.md with merged pull request #2164 by @CarrotManMatt in #2220
- docs: fix changelog mistakes by @JustaSqu1d in #2222
- fix:
_bytes_to_base64_data
not defined by @llamaair in #2185 - feat: Add properties for burst reactions by @NeloBlivion in #1947
- fix: TypeErrors raised from Reaction events by @NeloBlivion in #2255
- fix: ffmpeg terminated prematurely by @FrederikTheDane in #2240
- fix: tasks loop infinitely when
tzinfo
is neitherNone
nor UTC by @SorameHato in #2196 - feat: Add slowmode_delay attribute to discord.VoiceChannel by @its-darsh in #2112
- fix(commands): fix permission check edge case by @Middledot in #2253
- fix(ext.bridge/commands): default arguments with Option don't work by @Middledot in #2256
- fix: offset-aware time when preparing tasks by @Dorukyum in #2271
- fix: attribute error in command serialization by @Mihitoko in #2243
- fix:
Intents.all
returning the wrong value by @Aityz in #2257 - fix(ext.commands): required is False although default is None by @solaluset in #2282
- ci(deps): bump github/codeql-action from 2 to 3 by @dependabot in #2289
- fix: update typed dicts for commands by @Dorukyum in #2274
- feat: ForumChannel default_reaction_emoji attribute by @davidhozic in #2178
- feat: support python 3.12 by @plun1331 in #2292
- fix: auditlogs after param for fetch is ignored by @Lulalaby in #2295
- fix: handle ephemeral messages in
disable_on_timeout
by @OmLanke in #2297 - fix:
AttributeError
when failing to establish initial websocket connection by @Dasupergrasskakjd in #2301 - fix: change default attribute of
SlashCommandGroup
by @Dasupergrasskakjd in #2303 - fix(typing): proper VoiceClient.play() return value by @solaluset in #2324
- chore: allow versions of aiohttp that are non-breaking forever by @VincentRPS in #2326
- feat: add applied_tags parameter to Webhook.send() by @tyrantlink in #2322
- fix: parse options by @Dorukyum in #2327
- fix: parse options again after setting cog by @Dorukyum in #2330
- fix(pages): default buttons reappearing on page change by @Icebluewolf in #2319
- fix:
AttributeError
when comparing commands by @Dorukyum in #2299 - chore(bridge): use BridgeOption instead of Option by @Middledot in #2252
- fix: initialize group copies with right arguments by @Dorukyum in #2331
- fix: slash options broken when declared explicitly by @plun1331 in #2332
- fix: setting options using default syntax makes option optional by @plun1331 in #2333
- fix: skip BridgeContext when parsing options by @Dorukyum in #2337
- fix: add accurate type hints to
HistoryIterator
by @honzajavorek in #2340 - feat: implement Avatar Decorations by @NeloBlivion in #2131
- feat: Implement Attachmentflags and Attachment expiry attributes by @NeloBlivion in #2342
- feat: Implement Onboarding features by @NeloBlivion in #2127
- feat: implement monetization by @plun1331 in #2273
- fix:
(Sync)WebhookMessage._thread_id
could beNone
by @Dorukyum in #2343 - chore: clean up changelog by @Dorukyum in #2341
- fix: add
entitlements
to slots ofInteraction
by @Dorukyum in #2345 - docs: fix incorrect documentation about
discord.Option.autocomplete
by @Blue-Robin-Taken in #2265 - fix: Add missing kwargs to TextChannel.create_thread and similar methods by @NeloBlivion in #2350
- fix: Improve Thread.members Reliability by @Icebluewolf in #2351
- fix: type hint kwargs properly by @Dorukyum in #2364
- fix: fixes enum to support stringified annotations by @jab416171 in #2367
- feat: implement voice channel statuses by @Icebluewolf in #2368
- feat: enforce_nonce parameter to message sending by @Dorukyum in #2370
- feat: audit logs for voice channel status by @Dorukyum in #2373
- docs: add missing docs for voice channel status audit log by @Lulalaby in #2374
- chore: bump changelog version by @Lulalaby in #2375
- fix: enforce_nonce mistake by @Lulalaby in #2376
New Contributors
- @davidhozic made their first contribution in #1907
- @Lacosst0 made their first contribution in #2007
- @qoft made their first contribution in #1981
- @doluk made their first contribution in #1925
- @elliotcubit made their first contribution in #2075
- @XXMA16 made their first contribution in #2090
- @mariohero24 made their first contribution in #1945
- @NyuwBot made their first contribution in #2100
- @afroemming made their first contribution in #2124
- @Yuki-42 made their first contribution in #2148
- @Seltsamsel made their first contribution in #2156
- @CarrotManMatt made their first contribution in #2164
- @llamaair made their first contribution in #2153
- @FrederikTheDane made their first contribution in #2240
- @SorameHato made their first contribution in #2196
- @its-darsh made their first contribution in #2112
- @Aityz made their first contribution in #2257
- @solaluset made their first contribution in #2282
- @Dasupergrasskakjd made their first contribution in #2301
- @tyrantlink made their first contribution in #2322
- @Blue-Robin-Taken made their first contribution in #2265
- @ShackledMars261 made their first contribution in #2347
Full Changelog: v2.4.1...v2.5.0