You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used to trigger an automatic error message showing the reason for the error (passed as reason=
in InvalidArgumentsError(reason='<message to chat here>'))
example:
fromtwitchbotimportCommand, Message, InvalidArgumentsError@Command(name='error')asyncdefcmd_test(msg: Message):
raiseInvalidArgumentsError(reason='<message to chat here>',
cmd=cmd_test) # cmd= is not required, but is used to signal which command raised the error
The above code will print this error message in twitch chat:
<message to chat here> - syntax: "" - do "?help error" for more details