Annotation Interface OnChatMessage


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface OnChatMessage
A method with this annotation will get called whenever the bot receives a discord message. Optionally you can add ifMsgContains = "some filter string", so it only gets called if there's a message containing that string
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    a short description of the option and what its for
  • Element Details

    • ifMsgContains

      String ifMsgContains
      a short description of the option and what its for
      Returns:
      a short description of the option and what its for
      Default:
      ""