[Python] ImportError: cannot import name 'Option' from 'discord'

Discussão em 'Python' iniciado por Stack, Agosto 13, 2025.

  1. Stack

    Stack Membro Participativo

    I can't run my code, because of this Can someone help me ?

    ImportError: cannot import name 'Option' from 'discord'



    My imports are

    import discord
    import datetime
    from discord import Option
    from discord.ext import commands
    from discord.ext.commands import MissingPermissions
    from discord_components import Button, Select, SelectOption, ComponentsBot, interaction
    from discord_components.component import ButtonStyle
    from discord_slash import SlashCommand
    from discord_slash.utils.manage_commands import create_option

    Continue reading...

Compartilhe esta Página