Skip to main content

Args functions

  • {escape}: Escapes the markdown of the given string

    • Arguments:
      • string = ""
    • Example result: \*test\*
      • Using input: {escape;*test*}
    • Example result: \_test\_
      • Using input: {escape;_test_}
    • Example result: \test``
      • Using input: {escape;test}
    • Example result: \~\~test\~\~
      • Using input: {escape;~~test~~}
    • Example result: \|\|test\|\|
      • Using input: {escape;||test||}
  • {args}: Returns all arguments separated with { and } being escaped

    • Arguments:
      • separator = " "
    • Example result: 1 2 3
    • Example result: 1-2-3
      • Using input: {args;-}
  • {argsObj}: Returns the given property of an event argument

    • Arguments:
      • path = ""
      • handleUnknown = "error"
    • Example result: 1
      • Using input: {argsObj;a.b.c}
    • Example result: {"a":{"b":{"c":"1"}}}
      • Using input: {argsObj}
    • Example result: {"b":{"c":"1"}}
      • Using input: {argsObj;a;empty}
    • Example result: Unknown property d (a.b.d)
      • Using input: {argsObj;a.b.d}
    • Example result: <empty>
      • Using input: {argsObj;a.b.d;empty}
  • {modalField}: Gets a field from a modal response using the modal ID and field label. Errors if the field doesn't exist

    • Arguments:
      • id = ""
      • label = ""
    • Only usable in: modal
    • Example result: test