Try / Catch (Section) — DiSky

Addon: DiSky · Category: Section · Since: 5.0.0-a1

Syntax

try

Description

Runs a block and catches any DiSky runtime errors. On error, jumps to the catch block with the caught discorderror(s) stored in the given variable. Add 'and stop' to halt the trigger afterwards.

Examples

try:
    ban member event-member
catch {_errors::*}:
    reply with "Could not ban: %error meaning of {_errors::1}%"

View source