Update dependency py-cord to v2.8.0 #29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/py-cord-2.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
==2.6.1→==2.8.0Release Notes
Pycord-Development/pycord (py-cord)
v2.8.0Compare Source
Added
(#2948)
(#3044)
Member.coloursandMember.colorsproperties.(#3063)
RoleTypeenum accessible viaRole.typeandRoleTags.type.(#2708)
Colour.light_theme(),Colour.ash_theme(), andColour.onyx_theme().(#3043)
RadioGroup,CheckboxGroup, andCheckboxfor modals.(#3073)
notifications. (#3062)
User.collectiblesproperty.(#3107)
Nameplate.(#3107)
Member.display_avatar_decorationandMember.guild_avatar_decoration.(#3109)
on_raw_member_updatethat is dispatched when a member isupdated, regardless of cache status.
(#3012)
features. (#3143)
Changed
read_onlyteam members aren't considered as owners anymore when checking for appownership permissions.
Member.colourandMember.colorto be aliases forMember.colours.primary.(#3063)
Colour.dark_theme()with Discord's new theme colours.(#3043)
User.nameplateto be an alias forUser.collectibles.nameplate.(#3107)
FileComponent.nameandFileComponent.sizeto be optional.(#3115)
Fixed
(#3167)
TypeErrorwhen usingLabel.set_selectand not providingdefault_values.(#3171)
View.from_dict()incorrectly returningNone.(#3181)
(#3189)
MessagePinIterator.(#3178)
KeyErrorwhen fetching an app's information or checking for app ownershipwith
is_owner.(#3059)
KeyErrorwhen fetching an app's information or checking for app ownershipwith
is_owner.Itemattributes not being set correctly.(#3102)
floattype fortimeout=...inws_connect().(#3105)
avatar_decorationto now cause anon_user_updateevent to fire. (#3103)
Deprecated
is_bot_managed,is_premium_subscriber,is_integration,is_available_for_purchase, andis_guild_connections_rolein favor oftypeforboth
RoleandRoleTags.(#2708)
Colour.embed_background().(#3043)
suppressparameter in all applicable message-related methods in favorof
suppress_embeds.(#3062)
discord.VoiceClientanddiscord.VoiceProtocolin favor ofdiscord.voice.VoiceClientanddiscord.voice.VoiceProtocol.(#3143)
Removed
restrictions. (#3056)
Guild.set_mfa_required,Guild.delete,Template.create_guild, andClient.create_guild.v2.7.2Compare Source
Changed
read_onlyteam members aren't considered as owners anymore when checking for appownership permissions.
Fixed
KeyErrorwhen fetching an app's information or checking for app ownershipwith
is_owner.v2.7.1Compare Source
Added
.extensionattribute to theAppEmojiandGuildEmojiclasses.(#3055)
PrimaryGuild.(#3077)
cache_default_soundsparameter toClientand its subclasses.(#3113)
Changed
utils.deprecatedin favor ofwarnings.deprecated. Added typechecker warnings support for function deprecations.
(#3042)
Role.is_assignable()to also check whether the bot has theMANAGE_ROLESpermission. (#3048)
(#3067)
Fixed
ContainerandSection(#3032)
(#3019)
RawMessageUpdateEvent.cached_messagebeing alwaysNoneeven when the messagewas cached. (#3038)
files by changing the
.urlextension of animated emojis from.gifto.webp.(#3055)
Interaction.channelattribute not being properly resolved withuser-installed commands ran in guilds of which the bot is not a member.
(#3047)
ForwardedMessageattributes not being populated:ForwardedMessage.mentions,ForwardedMessage.role_mentions, andForwardedMessage.type.(#3051)
(#3065)
Interaction.respondandApplicationContext.respondmethods to explicitlylist the accepted parameters.
(#3061)
InteractionResponse.send_messagemethod were not type-hinted as optional.
(#3061)
primary_guildto now cause anon_user_updateevent tofire. (#3077)
(#3082)
ext.pages.Paginatornot working anymore when usingcustom_view.(#3090)
get_or_fetch()not supportingThreadobjects.(#3101)
v2.7.0Compare Source
Added
Attachment.read_chunkedand added optionalchunksizeargument toAttachment.savefor retrieving attachments in chunks.(#2956)
AppInfo.edit()method and missingAppInfoattributes.(#2994)
Guild.fetch_roles_member_countsmethod andGuildRoleCountsclass.(#3020)
with_responsefor interaction callbacks, addingInteraction.callback.is_loading()andInteraction.callback.is_ephemeral().(#2711)
RawMessageUpdateEvent.new_message- message update events now contain fullmessage objects (#2780)
Guild.get_or_fetch()andClient.get_or_fetch()shortcut methods.(#2776)
avatar,banner, andbiofor the botuser through
Member.edit.(#2908)
(#2899)
ui.Select.valuesreturn type.SelectDefaultValueobject to create select default values.SelectDefaultValueTypeenum.ui.Selectaliases for thedifferent select types:
ui.StringSelect,ui.UserSelect,ui.RoleSelect,ui.MentionableSelect, andui.ChannelSelect.storeparameter toViewandModalclasses.(#2904)
Webhook.parentandWebhook.from_interaction(#2904)
returning an awaitable as
Option.autocomplete.(#2914)
ui.FileUploadfor modals and theFileUploadcomponent.(#2938)
Permissions.bypass_slowmode.(#2939)
Guild.incidents_dataandGuild.modify_incident_actions().(#2955)
mentionproperty toBaseEmoji.(#2972)
positionalargument tocommands.Flag.(#2443)
Guild.fetch_rolemethod.(#2528)
AppInfoattributes:approximate_guild_count,approximate_user_install_count,custom_install_url,install_params,interactions_endpoint_url,redirect_uris,role_connections_verification_url, andtags. (#2520)Member.guild_bannerandMember.display_bannerproperties.(#2556)
(#2501)
cache_app_emojisparameter toClient.(#2501)
elapsedmethod toVoiceClient.(#2587)
filterparameter toutils.basic_autocomplete().(#2590)
subscription_listing_id,guild_connections, andavailable_for_purchase.(#2606)
with_countsparameter tofetch_guildsmethod.(#2615)
Permissions.use_soundboard,Permissions.use_external_sounds, andPermissions.view_creator_monetization_analytics.(#2620)
MediaChannelchannel type.(#2641)
Message._raw_dataattribute.(#2670)
Interaction.(#2659)
VoiceMessagesubclass ofFileto allow voice messages to be sent.(#2579)
Guild.fetch_sounds(),Guild.create_sound(),SoundboardSound.edit(), andSoundboardSound.delete().Client.fetch_default_sounds().VoiceChannel.send_soundboard_sound().on_voice_channel_effect_sendevent for sound and emoji effects.Guild.soundboard_limit.(#2623)
Subscriptionobject and related methods/events.(#2564)
Message.forward_to,Message.snapshots, and other related attributes.(#2598)
Guildfeature flags andGuild.editparameters.(#2672)
Route.API_BASE_URL.(#2714)
datetime.timeobject toformat_dt.(#2747)
overlapparameter to theloopdecorator andLoopclass, allowing concurrent iterations if enabled.
(#2765)
default_reaction_emojito beNone. (#2772)typing.Annotated.(#2782)
MemberinMentionableConverter.(#2775)
discord.Interaction.created_at.(#2801)
User.nameplateproperty.(#2817)
Role.coloursand theRoleColoursclass.(#2818)
ThreadArchiveDurationenum to improve clarity of thread archive durations.(#2826)
Interaction.attachment_size_limit.(#2854)
(#2858)
AuditLogDiff.communication_disabled_until.(#2883)
discord.User.primary_guildand thePrimaryGuildclass.(#2876)
get_componenttoMessage,Section,ContainerandActionRow.(#2849)
Changed
(#2904)
discord.ui.Viewanddiscord.ui.Modalto 2.6.1 behavior; not compatiblewith new features.
discord.ui.DesignerViewanddiscord.ui.DesignerModalto support newcomponents.
DesignerViewandContainerdo not supportButtonandSelectdirectly; usediscord.ui.ActionRowinstead.DesignerModaldoes not supportInputTextandSelectdirectly; usediscord.ui.Labelinstead.InputText.description,Select.labelandSelect.description; these arenow attributes of
Label.discord.ui.Itemis now a base class forViewItemandModalItem; all itemsinherit from these.
ItemInterfaceclass, split intoBaseViewandBaseModalcoverproperty ofScheduledEventandcoverargument ofScheduledEvent.edittoimage.(#2496)
(#2521)
Emojihas been renamed toGuildEmoji.(#2501)
PCMVolumeTransformer.readmethod with a pure Python equivalent.
(#2176)
Guild.filesize_limitto 10 MB instead of 25 MB following Discord's APIchanges. (#2671)
Entitlement.ends_atcan now beNone.(#2564)
ApplicationCommand.nsfwtoFalse.(#2797)
(#2812)
Messageable.pins()now returns aMessagePinIteratorand has new arguments.(#2872)
Fixed
viewattribute on many view items being incorrect.(#2981)
TypeErrorin paginator implementation when only passingPageGroupobjectsand
show_menuis falsy.(#2993)
ui.SelectGeneric typing by adding default values toTypeVars. (#3002)
View'sdisable_on_timeoutnot working in private (DM) channels.(#3016)
(#2808)
rawreference inparse_message_updatecausing errors on message updates.(#2905)
view=Nonein various methods causing an AttributeError.(#2915)
View.messagebeingNonewhen it had not been interacted with yet.(#2916)
(#2924)
(#2925)
TypeErrorwhen typingui.Selectwithout providing optional type arguments.(#2943)
rowparameter and insertingitems out of row order.
(#2938)
(#2938)
TypeErrorwhen using Python 3.12+typesyntax for typing slash commandparameters. (#2952)
(#2966)
Member.display_bannerbeingNonewhen the member hasno guild specific banner, but does have a global one.
(#2968)
__repr__formatting forAppEmoji.(#2972)
Enumoptions not setting the correct type when only one choice is available.(#2577)
codecoption forFFmpegOpusAudioclass to make it in line withdocumentation. (#2581)
(#2584)
Paginator.edit()with default parameters.(#2594)
is_owner()usertype hint:User->User | Member.(#2593)
Guild.create_test_entitlement()andUser.create_test_entitlement()using theguild/user ID instead of the application ID.
(#2595)
BucketType.categorycooldown commands not functioning correctly in privatechannels. (#2603)
ctxparameter of aSlashCommandnot beingUniontype.(#2611)
TypeErrorwhen passingskusparameter inClient.entitlements().(#2627)
AttributeErrorwhen sending polls withPartialWebook.(#2624)
ForumChannelflags not working.(#2641)
AttributeErrorwhen accessingMember.guild_permissionsfor user installedapps. (#2650)
(#2635)
Interaction.channel.(#2658)
Paginatorto an ephemerallydeferred interaction.
(#2661)
metadata to be ignored by Discord.
(#2679)
(#2700).
BridgeCommandduplicate in default help command.(#2656)
AttributeErrorwhen trying to consume a consumable entitlement.(#2564)
Subscription.renewal_sku_idsnot acceptingNonefrom the received payload.(#2709)
ForumChannel.editallowingdefault_reaction_emojito beNone.(#2739)
Nonetype hints inSelect.__init__.(#2746)
TypeErrorwhen usingFlagwith Python 3.11+.(#2759)
TypeErrorwhen specifyingthread_nameinWebhook.send.(#2761)
valid_localesto supportinandes-419.(#2767)
:smile:in PartialEmoji.from_str. Also appliedthe same logic in PartialEmojiConverter.
(#2815)
Webhook.editnot working withattachments=[].(#2779)
Stickerreturning the wrongurl.(#2781)
VoiceClientcrashing randomly while receiving audio(#2800)
VoiceClient.connectfailing to do initial connection.(#2812)
AttributeErrorwhen printing a File component's__repr__.(#2843)
TypeErrorwhen using@optionwith certain annotations and along withchannel_types. (#2835)TypeErrorwhen usingOptional[...]or... | Nonein command option type.(#2852)
PermissionOverwrite.update.(#2878)
AttributeErrorwhen accessingAuditLogEntry.changesmore than once.([#2882])(#2882))
start_timeandend_timeofGuild.create_scheduled_event(#2879)
Deprecated
viewattribute on view items.(#2981)
utils.get_or_fetch(attr, id)andClient.get_or_fetch_user(id)in favourof
utils.get_or_fetch(object_type, object_id)andClient.get_or_fetch(User, id).(#2776)
AppInfo.summaryin favor ofAppInfo.description.(#2520)
Emojiin favor ofGuildEmoji.(#2501)
Interaction.cached_channelin favor ofInteraction.channel.(#2658)
is_nsfwfor categories since it was never supported by the API.(#2772)
Messageable.pins()returning a list ofMessage; it should be used as aniterator of
MessagePininstead.(#2872)
Removed
(#2986)
OptioninBridgeCommand, useBridgeOptioninstead. (#2731)
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.