Open
Conversation
d1a1926 to
b4e9427
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==2.6.1→==2.7.1Release Notes
Pycord-Development/pycord (py-cord)
v2.7.1Compare Source
Added
.extensionattribute to theAppEmojiandGuildEmojiclasses.(#3055)
PrimaryGuild.(#3077)
Changed
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)
v2.7.0Compare Source
Added
Attachment.read_chunkedand added optionalchunksizeargument toAttachment.savefor retrieving attachments in chunks.(#2956)
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: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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 was generated by Mend Renovate. View the repository job log.