-
-
Notifications
You must be signed in to change notification settings - Fork 482
Add decorator interface for slash commands #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
esmaycat
reviewed
Aug 29, 2021
DA-344
pushed a commit
to DA-344/pycord
that referenced
this pull request
May 31, 2025
* Start migration to uv * Setup ruff and hatch * Change pre-commit to use ruff * Format with ruff * Fix mistake * Add dev deps * Change workflows to use uv and ruff * ➕ Add colorlog and remove requirements folder and fix build * 💚 Fix sphinx build ? * 🐛 Add __version.py for version management and update import in __init__.py * ✏️ Update lib-checks.yml to run ruff on ubuntu-latest * 🐛 Update lib-checks.yml to run mypy with uv * 🔥 Delete MANIFEST.in * ✨ Enhance lib-checks.yml to include ruff formatter check * ♻️ Refactor pyproject.toml and uv.lock to use optional-dependencies for voice and speed
DA-344
pushed a commit
to DA-344/pycord
that referenced
this pull request
Oct 3, 2025
* Move utils.py to utils/ * 🔥 Remove `filter_params` * ♻️ Merge `time_snowflake` and `generate_snowflake`, move `basic_autocomplete` to `utils/public.py` * ♻️ Merge `time_snowflake` and `generate_snowflake`, move `basic_autocomplete` to `utils/public.py` * 🔥 Remove `utils.sleep_until` * chore: Start migration to uv & ruff & hatch (Pycord-Development#4) * Start migration to uv * Setup ruff and hatch * Change pre-commit to use ruff * Format with ruff * Fix mistake * Add dev deps * Change workflows to use uv and ruff * ➕ Add colorlog and remove requirements folder and fix build * 💚 Fix sphinx build ? * 🐛 Add __version.py for version management and update import in __init__.py * ✏️ Update lib-checks.yml to run ruff on ubuntu-latest * 🐛 Update lib-checks.yml to run mypy with uv * 🔥 Delete MANIFEST.in * ✨ Enhance lib-checks.yml to include ruff formatter check * ♻️ Refactor pyproject.toml and uv.lock to use optional-dependencies for voice and speed * Setup CHANGELOG.md (Pycord-Development#6) * chore: update docs workflows to use 'uv' for dependency management (Pycord-Development#33) * chore: Update localization workflows to use 'uv' for dependency management * chore: refactor Read the Docs configuration to use uv * 🔥 Move stuff to private * :refactor: move parse_time function to private utils and update references * 📝 update CHANGELOG to reflect utility function changes * 🎨 Format * ♻️ move deprecation utilities to private utils and update references * ♻️ move snowflake_time function to public.py * ♻️ move oauth_url and Undefined class to public.py; update imports * 📝 remove deprecated utility functions from documentation * 📝 remove (re)moved utility functions from documentation * 📝 add utils.resolve_template to changelog and remove from documentation * 🐛 fix import path for warn_deprecated utility function * :refactor: reorganize utility function imports and move evaluate_annotation to private module * ♻️ update import paths for utility functions to use relative imports * ♻️ move delay_task function to private * ♻️ removed `utils.get` in favor of `utils.find` * ♻️ removed `utils._unique` It was used twice, and once it wasn't even necessary * ♻️ move `async_all` to private * ♻️ move `maybe_coroutine` to private * ♻️ rename `maybe_coroutine` to `maybe_awaitable` * ♻️ move `sane_wait_for` to private * ♻️ move `format_dt` to public * ♻️ remove `as_chunks` function * 📝 update `utils.sleep_until` and `utils.parse_time` changelog to suggest alternatives * ♻️ move `compute_timedelta` function * ♻️ move `valid_icon_size` to `asset.py` * ♻️ refactor `utils.get` to `utils.find` across multiple files * ♻️ refactor markdown and mention handling functions in `__init__.py` and `public.py` * ♻️ move SnowflakeList to `private.py` * ♻️ move `find` function from `__init__.py` to `public.py` * ♻️ move `copy_doc` to private * ♻️ refactor `get` to `find` in onboarding and sticker modules * 🐛 fix `copy_doc` decorator usage in context.py * ♻️ move SequenceProxy to private module * ♻️ move cached_slot_property to private * 🚨 add noqa comments to prevent linting errors * ♻️ move get_slots function to private module * ♻️ refactor JSON serialization functions to private module * ♻️ replace custom cached_property implementation with functools.cached_property * ✏️ fix typo in CHANGELOG-V3.md * ➖ remove unused dependencies from pyproject.toml and uv.lock * ⚰️ remove test.py * ♻️ remove duplicate import of raw_mentions in __init__.py * 🐛 fix raw_role_mentions import in utils/__init__.py * 🔥 Duplicate `Iterable` import * Apply suggestion from @Lumabots Co-authored-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me> * 🔥 Simplify imports * 🔥 Simplify imports number 2 * 🔥 Simplify imports number 3 omg this is amazing * 🔥 Simplify imports number 4 omg this is amazing yee * 🔥 Simplify imports number 5 * Update discord/ext/commands/converter.py Co-authored-by: Ice Wolfy <44532864+Icebluewolf@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me> * Apply suggestions from code review Co-authored-by: Ice Wolfy <44532864+Icebluewolf@users.noreply.github.com> Co-authored-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me> * Update discord/state.py Co-authored-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me> * Update discord/state.py Co-authored-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me> * ♻️ Remove _ prefix in from and to json * ♻️ Make import less weird * Update utils.po Signed-off-by: Paillat <paillat@pycord.dev> * empty commit * Update discord/poll.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me> * Update discord/utils/private.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me> * 🐛 Fix broken import after merge * 🐛 Fix emojis.json path * 🐛 Fix broken imports * 🎨 Format stuff * 🐛 Fix import --------- Signed-off-by: Paillat <jeremiecotti@ik.me> Signed-off-by: Paillat <paillat@pycord.dev> Co-authored-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Co-authored-by: Ice Wolfy <44532864+Icebluewolf@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Summary
Adds decorators for adding slash commands.
Checklist