Interface Restriction<M>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean allowCommand​(M message)
      Returns whether a command caused by the given message should be allowed by this restriction or not.
    • Method Detail

      • allowCommand

        boolean allowCommand​(M message)
        Returns whether a command caused by the given message should be allowed by this restriction or not.
        Parameters:
        message - the message that caused the command to check allowance for
        Returns:
        whether a command caused by the given message should be allowed by this restriction or not