Skip to content

Conversation

@ChrisLovering
Copy link
Member

@ChrisLovering ChrisLovering commented Dec 24, 2022

This change syncs all app commands after extensions have been loaded.

This release also removes the need to run :obj:pydis_core.BotBase.load_extensions in a task, and it can just be awaited directly.

A beta release for this PR is available under 9.4.0b1 on pypi.

Changelog preview:
image

Docstring:
image

Approach

I specifically decided to go with a on-startup sync, rather than command based as it does not require us to manually call a command after merging a PR with a new/update to an app command.

There is a ratelimit on syncing global commands which add new commands (200 commands per guild per day), however updating commands (currently) has no ratelimit.

@netlify
Copy link

netlify bot commented Dec 24, 2022

Deploy Preview for bot-core ready!

Name Link
🔨 Latest commit c4d5630
🔍 Latest deploy log https://app.netlify.com/sites/bot-core/deploys/63a9cdf103baf20007c5cd27
😎 Deploy Preview https://deploy-preview-171--bot-core.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ChrisLovering
Copy link
Member Author

I have also made this available for testing on this PR python-discord/sir-robin#71

Copy link
Member

@shtlrs shtlrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested & my commands sync as usual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants