Skip to content

fix: Add missing Thread mapping for get_or_fetch#3101

Merged
Paillat-dev merged 4 commits into
Pycord-Development:masterfrom
Lumabots:theads-missing-get-or-fetch
Feb 12, 2026
Merged

fix: Add missing Thread mapping for get_or_fetch#3101
Paillat-dev merged 4 commits into
Pycord-Development:masterfrom
Lumabots:theads-missing-get-or-fetch

Conversation

@Lumabots

@Lumabots Lumabots commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Remove several unused imports (MessageType, try_enum, Member, MaxConcurrency) and tidy up multiline lambda/typing checks in commands core. Add Thread to utils._get_getter_fetcher_map with the same get_channel/fetch_channel getter and fetcher, enabling Thread resolution support. Changes are primarily import cleanup, minor refactors for readability, and adding Thread handling.

Information

Checklist

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.
  • I have updated the changelog to include these changes.

Remove several unused imports (MessageType, try_enum, Member, MaxConcurrency) and tidy up multiline lambda/typing checks in commands core. Add Thread to utils._get_getter_fetcher_map with the same get_channel/fetch_channel getter and fetcher, enabling Thread resolution support. Changes are primarily import cleanup, minor refactors for readability, and adding Thread handling.
@Lumabots
Lumabots requested a review from a team as a code owner February 12, 2026 16:23
@pycord-app

pycord-app Bot commented Feb 12, 2026

Copy link
Copy Markdown

Thanks for opening this pull request!
Please make sure you have read the Contributing Guidelines and Code of Conduct.

This pull request can be checked-out with:

git fetch origin pull/3101/head:pr-3101
git checkout pr-3101

This pull request can be installed with:

pip install git+https://github.com/Pycord-Development/pycord@refs/pull/3101/head

@Paillat-dev Paillat-dev changed the title Remove unused imports and add Thread mapping fix: Remove unused imports and add Thread mapping Feb 12, 2026
@Lumabots
Lumabots requested review from a team as code owners February 12, 2026 16:25
@Lumabots
Lumabots requested review from a user, JustaSqu1d and Paillat-dev February 12, 2026 16:25

@Paillat-dev Paillat-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Other than the comment, tested and lgtm

Comment thread discord/commands/core.py

@Paillat-dev Paillat-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ik its dumb put please separate this in two prs.

@Lumabots

Copy link
Copy Markdown
Contributor Author

Ik its dumb put please separate this in two prs.

its just pre commit

@Paillat-dev

Paillat-dev commented Feb 12, 2026

Copy link
Copy Markdown
Member

@Lumabots All of it ? yes

@Lumabots

Copy link
Copy Markdown
Contributor Author

, only part i changed is the 2 lines to add thread

@Paillat-dev Paillat-dev changed the title fix: Remove unused imports and add Thread mapping fix: fix missing Thread mapping for get_or_fetch Feb 12, 2026
@Paillat-dev Paillat-dev changed the title fix: fix missing Thread mapping for get_or_fetch fix: Add missing Thread mapping for get_or_fetch Feb 12, 2026
@Paillat-dev
Paillat-dev enabled auto-merge (squash) February 12, 2026 17:36
@Paillat-dev
Paillat-dev disabled auto-merge February 12, 2026 17:39
@Paillat-dev
Paillat-dev merged commit 13f9bbc into Pycord-Development:master Feb 12, 2026
29 of 31 checks passed
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.

2 participants