Class RegularServerChannelUpdater<T extends RegularServerChannelUpdater<T>>

    • Field Detail

      • regularServerChannelUpdaterDelegate

        protected final RegularServerChannelUpdaterDelegate regularServerChannelUpdaterDelegate
        The regular server channel updater delegate used by this instance.
    • Constructor Detail

      • RegularServerChannelUpdater

        protected RegularServerChannelUpdater​(RegularServerChannelUpdaterDelegate regularServerChannelUpdaterDelegate)
        Creates a new regular server channel updater.
        Parameters:
        regularServerChannelUpdaterDelegate - A subtype of a RegularServerChannelUpdaterDelegate.
      • RegularServerChannelUpdater

        public RegularServerChannelUpdater​(RegularServerChannel channel)
        Creates a new regular server channel updater.
        Parameters:
        channel - The channel to update.
    • 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.