Class ServerOwnerJavacordSlash

    • Constructor Detail

      • ServerOwnerJavacordSlash

        public ServerOwnerJavacordSlash()
    • Method Detail

      • allowCommand

        public boolean allowCommand​(CommandContext<? extends SlashCommandInteraction> commandContext)
        Description copied from interface: Restriction
        Returns whether a command caused by the given command context should be allowed by this restriction or not.
        Specified by:
        allowCommand in interface Restriction<SlashCommandInteraction>
        Parameters:
        commandContext - the command context, usually fully populated
        Returns:
        whether a command caused by the given command context should be allowed by this restriction or not