Interface ServerChannelChangeOverwrittenPermissionsEvent

    • Method Detail

      • getNewPermissions

        Permissions getNewPermissions​()
        Gets the new overwritten permissions.
        Returns:
        The new permissions.
      • getOldPermissions

        Permissions getOldPermissions​()
        Gets the old overwritten permissions.
        Returns:
        The old permissions.
      • getEntity

        DiscordEntity getEntity​()
        Gets the entity which permissions were changed. The entity is a user or a role.
        Returns:
        The entity which permissions were changed.
      • getUser

        Optional<User> getUser​()
        Gets the user which permissions were changed. Only present if the entity is a user!
        Returns:
        The user which permissions were changed.
      • getRole

        Optional<Role> getRole​()
        Gets the role which permissions were changed. Only present if the entity is a role!
        Returns:
        The role which permissions were changed.