Interface GuildChannelMixin<T extends GuildChannelMixin<T>>
- All Superinterfaces:
Channel
,ChannelMixin<T>
,ChannelUnion
,Comparable<GuildChannel>
,Formattable
,GuildChannel
,GuildChannelUnion
,IDetachableEntity
,IDetachableEntityMixin
,IMentionable
,ISnowflake
- All Known Subinterfaces:
AudioChannelMixin<T>
,CategoryMixin<T>
,ForumChannelMixin<T>
,GuildMessageChannelMixin<T>
,IAgeRestrictedChannelMixin<T>
,ICategorizableChannelMixin<T>
,IInteractionPermissionMixin<T>
,IInviteContainerMixin<T>
,IPermissionContainerMixin<T>
,IPositionableChannelMixin<T>
,IPostContainerMixin<T>
,ISlowmodeChannelMixin<T>
,IThreadContainerMixin<T>
,ITopicChannelMixin<T>
,IWebhookContainerMixin<T>
,MediaChannelMixin<T>
,NewsChannelMixin<T>
,StageChannelMixin<T>
,StandardGuildChannelMixin<T>
,StandardGuildMessageChannelMixin<T>
,TextChannelMixin<T>
,ThreadChannelMixin<T>
,VoiceChannelMixin<T>
- All Known Implementing Classes:
AbstractGuildChannelImpl
,AbstractStandardGuildChannelImpl
,AbstractStandardGuildMessageChannelImpl
,CategoryImpl
,DetachedCategoryImpl
,DetachedForumChannelImpl
,DetachedMediaChannelImpl
,DetachedNewsChannelImpl
,DetachedStageChannelImpl
,DetachedTextChannelImpl
,DetachedThreadChannelImpl
,DetachedVoiceChannelImpl
,ForumChannelImpl
,MediaChannelImpl
,NewsChannelImpl
,StageChannelImpl
,TextChannelImpl
,ThreadChannelImpl
,VoiceChannelImpl
public interface GuildChannelMixin<T extends GuildChannelMixin<T>>
extends GuildChannel, GuildChannelUnion, ChannelMixin<T>, IDetachableEntityMixin
-
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
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
default void
default void
checkPermission
(Permission permission) default void
checkPermission
(Permission permission, String message) default AuditableRestAction
<Void> delete()
Deletes this GuildChannel.default boolean
hasPermission
(Permission permission) Methods inherited from interface net.dv8tion.jda.api.entities.channel.Channel
formatTo, getAsMention, getFlags, getJDA, getName, getType
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, getManager, getPermissionContainer
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.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.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
delete
Description copied from interface:GuildChannel
Deletes this GuildChannel.Possible ErrorResponses include:
UNKNOWN_CHANNEL
If this channel was already deletedMISSING_PERMISSIONS
The send request was attempted after the account lostPermission.MANAGE_CHANNEL
in the channel.MISSING_ACCESS
If we were removed from the Guild
- Specified by:
delete
in interfaceChannel
- Specified by:
delete
in interfaceChannelMixin<T extends GuildChannelMixin<T>>
- Specified by:
delete
in interfaceGuildChannel
- Returns:
AuditableRestAction
-
hasPermission
-
checkPermission
-
checkPermission
-
checkCanManage
default void checkCanManage() -
checkCanAccess
default void checkCanAccess()- Specified by:
checkCanAccess
in interfaceChannelMixin<T extends GuildChannelMixin<T>>
-