Skip to content

find out why the isinstance check below doesn't stop the type errors below #1743

@github-actions

Description

@github-actions
Contributor

Line: 804

pycord//discord/bot.py

Lines 801 to 811 in 6ab3292

"""
if auto_sync is None:
auto_sync = self._bot.auto_sync_commands
# TODO: find out why the isinstance check below doesn't stop the type errors below
if interaction.type not in (
InteractionType.application_command,
InteractionType.auto_complete,
):
return
command: ApplicationCommand | None = None

Activity

added this to the v2.5 milestone on Feb 10, 2023
modified the milestones: v2.5, v2.6 on Feb 29, 2024
modified the milestones: v2.6, v2.7 on Jul 9, 2024
Paillat-dev

Paillat-dev commented on Jan 7, 2025

@Paillat-dev
Contributor

Because it's not an isinstance

Paillat-dev

Paillat-dev commented on Jan 7, 2025

@Paillat-dev
Contributor

What is the sense of this even

added theissue type on Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Lulalaby@Dorukyum@Paillat-dev

        Issue actions

          find out why the isinstance check below doesn't stop the type errors below · Issue #1743 · Pycord-Development/pycord