Class RegularServerChannelBuilder<T>

    • Constructor Detail

      • RegularServerChannelBuilder

        protected RegularServerChannelBuilder​(java.lang.Class<T> myClass,
                                              RegularServerChannelBuilderDelegate delegate)
        Creates a new regular server channel builder.
        Parameters:
        myClass - The class this builder is for.
        delegate - A subtype of a RegularServerChannelBuilderDelegate.
    • Method Detail

      • setRawPosition

        public T setRawPosition​(int rawPosition)
        Queues the raw position to be updated.
        Parameters:
        rawPosition - The new position of the channel. If you want to update the position based on other channels, make sure to use RegularServerChannel.getRawPosition() instead of RegularServerChannel.getPosition()!
        Returns:
        The current instance in order to chain call methods.
      • addPermissionOverwrite

        public <U extends Permissionable & DiscordEntityT addPermissionOverwrite​(U permissionable,
                                                                                   Permissions permissions)
        Adds a permission overwrite for the given entity.
        Type Parameters:
        U - The type of entity to hold the permission, usually User or Role
        Parameters:
        permissionable - The entity whose permissions should be overwritten.
        permissions - The permission overwrites.
        Returns:
        The current instance in order to chain call methods.
      • removePermissionOverwrite

        public <U extends Permissionable & DiscordEntityT removePermissionOverwrite​(U permissionable)
        Removes a permission overwrite for the given entity.
        Type Parameters:
        U - The type of entity to hold the permission, usually User or Role
        Parameters:
        permissionable - The entity whose permission overwrite should be removed.
        Returns:
        The current instance in order to chain call methods.