mirror of
https://github.com/koloideal/Argenta.git
synced 2026-08-09 01:11:14 +03:00
Update documentation and code snippets
This commit is contained in:
@@ -80,6 +80,9 @@ class Router:
|
||||
|
||||
if command_name.lower() in self.triggers:
|
||||
raise RepeatedTriggerNameException()
|
||||
|
||||
if command_name.lower() in self.aliases:
|
||||
raise RepeatedAliasNameException({command_name.lower()})
|
||||
|
||||
if overlapping := (self.aliases | self.triggers) & set(map(lambda x: x.lower(), command.aliases)):
|
||||
raise RepeatedAliasNameException(overlapping)
|
||||
|
||||
Reference in New Issue
Block a user