mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
parent
47cb7d03ec
commit
f0a47f5a40
@ -267,9 +267,6 @@ def _make_range_transformer(
|
||||
|
||||
|
||||
def _make_literal_transformer(values: Tuple[Any, ...]) -> Type[Transformer]:
|
||||
if len(values) < 2:
|
||||
raise TypeError(f'typing.Literal requires at least two values.')
|
||||
|
||||
first = type(values[0])
|
||||
if first is int:
|
||||
opt_type = AppCommandOptionType.integer
|
||||
|
Loading…
x
Reference in New Issue
Block a user