Interface MediaChannelMixin<T extends MediaChannelMixin<T>>
- All Superinterfaces:
Channel
,ChannelMixin<T>
,ChannelUnion
,Comparable<GuildChannel>
,Formattable
,GuildChannel
,GuildChannelMixin<T>
,GuildChannelUnion
,IAgeRestrictedChannel
,IAgeRestrictedChannelMixin<T>
,ICategorizableChannel
,ICategorizableChannelMixin<T>
,ICopyableChannel
,IDetachableEntity
,IDetachableEntityMixin
,IInviteContainer
,IInviteContainerMixin<T>
,IMemberContainer
,IMentionable
,IPermissionContainer
,IPermissionContainerMixin<T>
,IPermissionContainerUnion
,IPositionableChannel
,IPositionableChannelMixin<T>
,IPostContainer
,IPostContainerMixin<T>
,ISlowmodeChannel
,ISlowmodeChannelMixin<T>
,ISnowflake
,IThreadContainer
,IThreadContainerMixin<T>
,IThreadContainerUnion
,ITopicChannelMixin<T>
,IWebhookContainer
,IWebhookContainerMixin<T>
,IWebhookContainerUnion
,MediaChannel
,StandardGuildChannel
,StandardGuildChannelMixin<T>
- All Known Implementing Classes:
DetachedMediaChannelImpl
,MediaChannelImpl
public interface MediaChannelMixin<T extends MediaChannelMixin<T>>
extends MediaChannel, StandardGuildChannelMixin<T>, IAgeRestrictedChannelMixin<T>, ISlowmodeChannelMixin<T>, IWebhookContainerMixin<T>, IPostContainerMixin<T>, ITopicChannelMixin<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPostContainer
IPostContainer.SortOrder
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.entities.channel.Channel
MAX_NAME_LENGTH
Fields inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
JUMP_URL
Fields inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPostContainer
MAX_POST_CONTAINER_TOPIC_LENGTH, MAX_POST_TAGS
Fields inherited from interface net.dv8tion.jda.api.entities.channel.attribute.ISlowmodeChannel
MAX_SLOWMODE
-
Method Summary
Modifier and TypeMethodDescriptiondefault ChannelAction
<MediaChannel> createCopy
(Guild guild) Creates a copy of the specifiedGuildChannel
in the specifiedGuild
.Methods inherited from interface net.dv8tion.jda.api.entities.channel.Channel
formatTo, getAsMention, getFlags, getJDA, getName
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.ChannelMixin
setName
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.ChannelUnion
asAudioChannel, asCategory, asForumChannel, asGroupChannel, asGuildChannel, asGuildMessageChannel, asMediaChannel, asMessageChannel, asNewsChannel, asPrivateChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
getGuild, getJumpUrl
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.middleman.GuildChannelMixin
checkCanAccess, checkCanManage, checkPermission, checkPermission, delete, hasPermission
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.GuildChannelUnion
asAudioChannel, asCategory, asForumChannel, asGuildMessageChannel, asMediaChannel, asNewsChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IAgeRestrictedChannel
isNSFW
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IAgeRestrictedChannelMixin
setNSFW
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.ICategorizableChannel
getManager, getParentCategory, getParentCategoryId, getParentCategoryIdLong, getPositionInCategory
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.ICategorizableChannelMixin
isSynced, setParentCategory
Methods inherited from interface net.dv8tion.jda.api.entities.detached.IDetachableEntity
isDetached
Methods inherited from interface net.dv8tion.jda.internal.entities.detached.mixin.IDetachableEntityMixin
checkAttached, detachedException, detachedRequiresChannelException
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IInviteContainerMixin
createInvite, retrieveInvites
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IMemberContainer
getMembers
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPermissionContainer
getMemberPermissionOverrides, getRolePermissionOverrides
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IPermissionContainerMixin
getPermissionContainer, getPermissionOverride, getPermissionOverrideMap, getPermissionOverrides, upsertPermissionOverride
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.IPermissionContainerUnion
asAudioChannel, asCategory, asForumChannel, asGuildMessageChannel, asNewsChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPositionableChannel
getPosition, getPositionRaw
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IPositionableChannelMixin
setPosition
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPostContainer
getAvailableTagById, getAvailableTagById, getAvailableTags, getAvailableTagsByName, getDefaultReaction, getDefaultSortOrder, getManager, getTopic, isTagRequired
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IPostContainerMixin
createForumPost, createThreadChannel, createThreadChannel, getAvailableTagCache, getRawFlags, getRawSortOrder, setDefaultReaction, setDefaultSortOrder, setFlags
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.ISlowmodeChannel
getManager, getSlowmode
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.ISlowmodeChannelMixin
setSlowmode
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IThreadContainer
getDefaultThreadSlowmode, getThreadChannels
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IThreadContainerMixin
createThreadChannel, createThreadChannel, retrieveArchivedPrivateJoinedThreadChannels, retrieveArchivedPrivateThreadChannels, retrieveArchivedPublicThreadChannels, setDefaultThreadSlowmode
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.IThreadContainerUnion
asForumChannel, asGuildMessageChannel, asMediaChannel, asNewsChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.ITopicChannelMixin
getTopic, setTopic
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IWebhookContainerMixin
createWebhook, deleteWebhookById, retrieveWebhooks
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.IWebhookContainerUnion
asAudioChannel, asForumChannel, asGuildMessageChannel, asMediaChannel, asNewsChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.concrete.MediaChannel
createCopy, getManager, getType, isMediaDownloadHidden
-
Method Details
-
createCopy
Description copied from interface:ICopyableChannel
Creates a copy of the specifiedGuildChannel
in the specifiedGuild
.
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:
- Name
- Parent Category (if present)
- Voice Elements (Bitrate, Userlimit)
- Text Elements (Topic, NSFW, Slowmode)
- All permission overrides for Members/Roles
Possible
ErrorResponses
caused by the returnedRestAction
include the following:MISSING_PERMISSIONS
The channel could not be created due to a permission discrepancyMISSING_ACCESS
TheVIEW_CHANNEL
permission was removed
- Specified by:
createCopy
in interfaceICopyableChannel
- Specified by:
createCopy
in interfaceMediaChannel
- Specified by:
createCopy
in interfaceStandardGuildChannel
- Parameters:
guild
- TheGuild
to create the channel in- Returns:
- A specific
ChannelAction
This action allows to set fields for the new GuildChannel before creating it!
-