diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index 4406490b..bbef6719 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -1044,7 +1044,9 @@ class Option(Generic[T, DT]): # type: ignore "name", ) - def __init__(self, default: T = inspect.Parameter.empty, *, description: DT, name: str = discord.utils.MISSING) -> None: + def __init__( + self, default: T = inspect.Parameter.empty, *, description: DT, name: str = discord.utils.MISSING + ) -> None: self.description = description self.default = default self.name: str = name diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index a23ae878..3d6a9631 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -1288,7 +1288,11 @@ class Command(_BaseCommand, Generic[CogT, P, T]): elif all([arg in application_option_channel_types for arg in annotation.__args__]): option["type"] = 7 - option["channel_types"] = [discord_value for arg in annotation.__args__ for discord_value in application_option_channel_types[arg]] + option["channel_types"] = [ + discord_value + for arg in annotation.__args__ + for discord_value in application_option_channel_types[arg] + ] elif origin is Literal: literal_values = annotation.__args__