Class DetachedNewsChannelImpl
java.lang.Object
net.dv8tion.jda.internal.entities.channel.AbstractChannelImpl<DetachedNewsChannelImpl>
net.dv8tion.jda.internal.entities.channel.middleman.AbstractGuildChannelImpl<DetachedNewsChannelImpl>
net.dv8tion.jda.internal.entities.channel.middleman.AbstractStandardGuildChannelImpl<DetachedNewsChannelImpl>
net.dv8tion.jda.internal.entities.channel.middleman.AbstractStandardGuildMessageChannelImpl<DetachedNewsChannelImpl>
net.dv8tion.jda.internal.entities.channel.concrete.detached.DetachedNewsChannelImpl
- All Implemented Interfaces:
Comparable<GuildChannel>
,Formattable
,IAgeRestrictedChannel
,ICategorizableChannel
,ICopyableChannel
,IInviteContainer
,IMemberContainer
,IPermissionContainer
,IPositionableChannel
,IThreadContainer
,IWebhookContainer
,Channel
,NewsChannel
,GuildChannel
,GuildMessageChannel
,MessageChannel
,StandardGuildChannel
,StandardGuildMessageChannel
,ChannelUnion
,DefaultGuildChannelUnion
,GuildChannelUnion
,GuildMessageChannelUnion
,IPermissionContainerUnion
,IThreadContainerUnion
,IWebhookContainerUnion
,MessageChannelUnion
,IDetachableEntity
,IMentionable
,ISnowflake
,IAgeRestrictedChannelMixin<DetachedNewsChannelImpl>
,ICategorizableChannelMixin<DetachedNewsChannelImpl>
,IInteractionPermissionMixin<DetachedNewsChannelImpl>
,IInviteContainerMixin<DetachedNewsChannelImpl>
,IPermissionContainerMixin<DetachedNewsChannelImpl>
,IPositionableChannelMixin<DetachedNewsChannelImpl>
,IThreadContainerMixin<DetachedNewsChannelImpl>
,ITopicChannelMixin<DetachedNewsChannelImpl>
,IWebhookContainerMixin<DetachedNewsChannelImpl>
,ChannelMixin<DetachedNewsChannelImpl>
,NewsChannelMixin<DetachedNewsChannelImpl>
,GuildChannelMixin<DetachedNewsChannelImpl>
,GuildMessageChannelMixin<DetachedNewsChannelImpl>
,MessageChannelMixin<DetachedNewsChannelImpl>
,StandardGuildChannelMixin<DetachedNewsChannelImpl>
,StandardGuildMessageChannelMixin<DetachedNewsChannelImpl>
,IDetachableEntityMixin
public class DetachedNewsChannelImpl
extends AbstractStandardGuildMessageChannelImpl<DetachedNewsChannelImpl>
implements NewsChannel, DefaultGuildChannelUnion, NewsChannelMixin<DetachedNewsChannelImpl>, IInteractionPermissionMixin<DetachedNewsChannelImpl>
-
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.middleman.StandardGuildMessageChannel
MAX_TOPIC_LENGTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSubscribes to the crossposted messages in this channel.Returns theChannelManager
for this GuildChannel.A List of allMembers
that are in this GuildChannel
ForTextChannels
, this returns all Members with thePermission.VIEW_CHANNEL
Permission.getType()
TheChannelType
for this channelboolean
Whether this entity is detached.setInteractionPermissions
(ChannelInteractionPermissions interactionPermissions) Methods inherited from class net.dv8tion.jda.internal.entities.channel.middleman.AbstractStandardGuildMessageChannelImpl
getDefaultThreadSlowmode, getLatestMessageIdLong, getTopic, isNSFW, setDefaultThreadSlowmode, setLatestMessageIdLong, setNSFW, setTopic
Methods inherited from class net.dv8tion.jda.internal.entities.channel.middleman.AbstractStandardGuildChannelImpl
getParentCategoryIdLong, getPermissionOverrideMap, getPositionRaw, setParentCategory, setPosition
Methods inherited from class net.dv8tion.jda.internal.entities.channel.middleman.AbstractGuildChannelImpl
compareTo, getGuild
Methods inherited from class net.dv8tion.jda.internal.entities.channel.AbstractChannelImpl
asAudioChannel, asCategory, asForumChannel, asGroupChannel, asGuildChannel, asGuildMessageChannel, asMediaChannel, asMessageChannel, asNewsChannel, asPrivateChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadChannel, asThreadContainer, asVoiceChannel, getIdLong, getJDA, getName, setName, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
delete, 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.unions.DefaultGuildChannelUnion
asNewsChannel, asStandardGuildMessageChannel, asTextChannel, asThreadContainer
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.middleman.GuildMessageChannel
canTalk, clearReactionsById, clearReactionsById, deleteMessages, removeReactionById, sendStickers
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.middleman.GuildMessageChannelMixin
canDeleteOtherUsersMessages, checkCanAddReactions, checkCanControlMessagePins, checkCanRemoveReactions, checkCanSendFiles, checkCanSendMessage, checkCanSendMessageEmbeds, checkCanViewHistory, clearReactionsById, clearReactionsById, deleteMessagesByIds, removeReactionById, sendStickers
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.GuildMessageChannelUnion
asAudioChannel, 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
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.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.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.ISnowflake
getId, getIdLong, getTimeCreated
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IThreadContainer
createThreadChannel, createThreadChannel, 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.middleman.MessageChannel
addReactionById, deleteMessageById, editMessageAttachmentsById, editMessageAttachmentsById, editMessageAttachmentsById, editMessageById, editMessageById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageEmbedsById, editMessageEmbedsById, editMessageEmbedsById, editMessageFormatById, editMessageFormatById, endPollById, endPollById, getHistoryAfter, getHistoryAfter, getHistoryAround, getHistoryAround, getHistoryBefore, getHistoryBefore, getLatestMessageId, getLatestMessageIdLong, pinMessageById, purgeMessages, purgeMessagesById, purgeMessagesById, removeReactionById, retrieveMessageById, retrievePollVotersById, retrievePollVotersById, retrieveReactionUsersById, retrieveReactionUsersById, retrieveReactionUsersById, sendFiles, sendMessageComponents, sendMessageComponents, sendMessageFormat, unpinMessageById
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.middleman.MessageChannelMixin
addReactionById, bulkDeleteMessages, deleteMessageById, editMessageAttachmentsById, editMessageById, editMessageById, editMessageComponentsById, editMessageEmbedsById, getHistory, getHistoryAfter, getHistoryAround, getHistoryBefore, getHistoryFromBeginning, getIterableHistory, pinMessageById, purgeMessages, purgeMessagesById, removeReactionById, retrieveMessageById, retrievePinnedMessages, retrieveReactionUsersById, sendFiles, sendMessage, sendMessage, sendMessageComponents, sendMessageEmbeds, sendMessageEmbeds, sendMessagePoll, sendTyping, setLatestMessageIdLong, unpinMessageById
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.MessageChannelUnion
asAudioChannel, asGroupChannel, asGuildMessageChannel, asNewsChannel, asPrivateChannel, asStageChannel, asTextChannel, asThreadChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.concrete.NewsChannel
createCopy, crosspostMessageById, crosspostMessageById, follow, follow
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.concrete.NewsChannelMixin
createCopy
Methods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.StandardGuildMessageChannel
getTopic
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.middleman.StandardGuildMessageChannelMixin
canTalk
-
Constructor Details
-
DetachedNewsChannelImpl
-
-
Method Details
-
isDetached
public boolean isDetached()Description copied from interface:IDetachableEntity
Whether this entity is detached.If this returns
true
, this entity cannot be retrieved, will never be updated, and most methods that would otherwise return aRestAction
will throw aDetachedEntityException
instead.- Specified by:
isDetached
in interfaceIDetachableEntity
- Returns:
True
, if the entity is detached
-
getType
Description copied from interface:Channel
TheChannelType
for this channel -
getMembers
Description copied from interface:IMemberContainer
A List of allMembers
that are in this GuildChannel
ForTextChannels
, this returns all Members with thePermission.VIEW_CHANNEL
Permission.
ForVoiceChannels
, this returns all Members that joined that VoiceChannel.
ForCategories
, this returns all Members who are in its child channels.- Specified by:
getMembers
in interfaceIMemberContainer
- Returns:
- An immutable List of
Members
that are in this GuildChannel.
-
follow
Description copied from interface:NewsChannel
Subscribes to the crossposted messages in this channel.
This will create aWebhook
of typeFOLLOWER
in the target channel.Possible
ErrorResponses
include:UNKNOWN_CHANNEL
If the target channel doesn't exist or is not visible to the currently logged in accountMISSING_PERMISSIONS
If the currently logged in account does not havePermission.MANAGE_WEBHOOKS
in the target channelMAX_WEBHOOKS
If the target channel already has reached the maximum capacity for webhooks
- Specified by:
follow
in interfaceNewsChannel
- Parameters:
targetChannelId
- The target channel id- Returns:
RestAction
-
getManager
Description copied from interface:GuildChannel
Returns theChannelManager
for this GuildChannel.
In the ChannelManager, you can modify the name, topic and position of this GuildChannel. You modify multiple fields in one request by chaining setters before callingRestAction.queue()
.- Specified by:
getManager
in interfaceGuildChannel
- Specified by:
getManager
in interfaceICategorizableChannel
- Specified by:
getManager
in interfaceIPermissionContainer
- Specified by:
getManager
in interfaceIPositionableChannel
- Specified by:
getManager
in interfaceNewsChannel
- Specified by:
getManager
in interfaceStandardGuildChannel
- Specified by:
getManager
in interfaceStandardGuildMessageChannel
- Returns:
- The ChannelManager of this GuildChannel
-
getInteractionPermissions
- Specified by:
getInteractionPermissions
in interfaceIInteractionPermissionMixin<DetachedNewsChannelImpl>
-
setInteractionPermissions
@Nonnull public DetachedNewsChannelImpl setInteractionPermissions(@Nonnull ChannelInteractionPermissions interactionPermissions) - Specified by:
setInteractionPermissions
in interfaceIInteractionPermissionMixin<DetachedNewsChannelImpl>
-