Skip to content

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

@github-actions

Description

@github-actions

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions