Interface CategoryMixin<T extends CategoryMixin<T>>

All Superinterfaces:
Category, Channel, ChannelMixin<T>, ChannelUnion, Comparable<GuildChannel>, Formattable, GuildChannel, GuildChannelMixin<T>, GuildChannelUnion, ICopyableChannel, IDetachableEntity, IDetachableEntityMixin, IMemberContainer, IMentionable, IPermissionContainer, IPermissionContainerMixin<T>, IPermissionContainerUnion, IPositionableChannel, IPositionableChannelMixin<T>, ISnowflake
All Known Implementing Classes:
CategoryImpl, DetachedCategoryImpl

public interface CategoryMixin<T extends CategoryMixin<T>> extends Category, IPositionableChannelMixin<T>, IPermissionContainerMixin<T>
  • Method Details

    • createCopy

      @Nonnull default ChannelAction<Category> createCopy(@Nonnull Guild guild)
      Description copied from interface: ICopyableChannel
      Creates a copy of the specified GuildChannel in the specified Guild.
      If the provided target guild is not the same Guild this channel is in then the parent category and permissions will not be copied due to technical difficulty and ambiguity.

      This copies the following elements:

      1. Name
      2. Parent Category (if present)
      3. Voice Elements (Bitrate, Userlimit)
      4. Text Elements (Topic, NSFW, Slowmode)
      5. All permission overrides for Members/Roles

      Possible ErrorResponses caused by the returned RestAction include the following:

      Specified by:
      createCopy in interface Category
      Specified by:
      createCopy in interface ICopyableChannel
      Parameters:
      guild - The Guild to create the channel in
      Returns:
      A specific ChannelAction
      This action allows to set fields for the new GuildChannel before creating it!