Skip to content

Commit

Permalink
🐛 修复配置项 application_commands{"*": ["*"]} 时抛出 TypeError #16 (#17
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Autuamn authored Mar 10, 2024
1 parent 6c9a24b commit 8869bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot/adapters/discord/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class BotInfo(BaseModel):
token: str
shard: Optional[Tuple[int, int]] = None
intent: Intents = Field(default_factory=Intents)
application_commands: Dict[str, List[Union[Snowflake, Literal["*"]]]] = Field(
application_commands: Dict[str, List[Union[Literal["*"], Snowflake]]] = Field(
default_factory=dict
)

Expand Down

0 comments on commit 8869bb0

Please sign in to comment.