Interface IInviteContainer
- All Superinterfaces:
- Channel,- Comparable<GuildChannel>,- Formattable,- GuildChannel,- IDetachableEntity,- IMentionable,- ISnowflake
- All Known Subinterfaces:
- AudioChannel,- AudioChannelUnion,- DefaultGuildChannelUnion,- ForumChannel,- MediaChannel,- NewsChannel,- StageChannel,- StandardGuildChannel,- StandardGuildMessageChannel,- TextChannel,- VoiceChannel
Represents a 
GuildChannel that can be the target of a Guild's invite.
 Invites have to be targeted at exactly one IInviteContainer, which will open when the invite is used (unless restricted by permissions).
- 
Field SummaryFields inherited from interface net.dv8tion.jda.api.entities.channel.ChannelMAX_NAME_LENGTHFields inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannelJUMP_URL
- 
Method SummaryModifier and TypeMethodDescriptionCreates a newInviteActionwhich can be used to create a newInvite.Returns all invites for this channel.Methods inherited from interface net.dv8tion.jda.api.entities.channel.ChannelformatTo, getAsMention, getFlags, getJDA, getName, getTypeMethods inherited from interface java.lang.ComparablecompareToMethods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChanneldelete, getGuild, getJumpUrl, getManager, getPermissionContainerMethods inherited from interface net.dv8tion.jda.api.entities.detached.IDetachableEntityisDetachedMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflakegetId, getIdLong, getTimeCreated
- 
Method Details- 
createInviteCreates a newInviteActionwhich can be used to create a newInvite.
 RequiresCREATE_INSTANT_INVITEin this channel.- Returns:
- A new InviteAction
- Throws:
- InsufficientPermissionException- If the account does not have- CREATE_INSTANT_INVITEin this channel
- IllegalArgumentException- If this is an instance of a- Category
- DetachedEntityException- If this entity is- detached
- See Also:
 
- 
retrieveInvitesReturns all invites for this channel.
 RequiresMANAGE_CHANNELin this channel. Will throw anInsufficientPermissionExceptionotherwise.- Returns:
- RestAction- Type: List<- Invite>
 The list of expanded Invite objects
- Throws:
- InsufficientPermissionException- if the account does not have- MANAGE_CHANNELin this channel
- DetachedEntityException- If this entity is- detached
- See Also:
 
 
-