Uses of Class
org.javacord.api.entity.channel.ChannelType
-
-
Uses of ChannelType in org.javacord.api.entity.channel
Methods in org.javacord.api.entity.channel that return ChannelType Modifier and Type Method Description static ChannelTypeChannelType. fromId(int id)Gets a channel type by its id.static ChannelType[]ChannelType. getRegularServerChannelTypes()Gets an array with all types that are regular server channel types.static ChannelType[]ChannelType. getServerChannelTypes()Gets an array with all types that are server channel types.static ChannelType[]ChannelType. getTextChannelTypes()Gets an array with all types that are text channel types.ChannelTypeChannel. getType()Gets the type of the channel.default ChannelTypeChannelCategory. getType()default ChannelTypePrivateChannel. getType()default ChannelTypeServerStageVoiceChannel. getType()static ChannelType[]ChannelType. getVoiceChannelTypes()Gets an array with all type that are voice channel types.static ChannelTypeChannelType. valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ChannelType[]ChannelType. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.javacord.api.entity.channel with parameters of type ChannelType Modifier and Type Method Description default java.util.concurrent.CompletableFuture<ServerThreadChannel>ServerTextChannel. createThread(ChannelType channelType, java.lang.String name, java.lang.Integer autoArchiveDuration)Creates a thread which is not related to a message.default java.util.concurrent.CompletableFuture<ServerThreadChannel>ServerTextChannel. createThread(ChannelType channelType, java.lang.String name, java.lang.Integer autoArchiveDuration, java.lang.Boolean inviteable)Creates a thread which is not related to a message.default java.util.concurrent.CompletableFuture<ServerThreadChannel>ServerTextChannel. createThread(ChannelType channelType, java.lang.String name, AutoArchiveDuration autoArchiveDuration)Creates a thread which is not related to a message.default java.util.concurrent.CompletableFuture<ServerThreadChannel>ServerTextChannel. createThread(ChannelType channelType, java.lang.String name, AutoArchiveDuration autoArchiveDuration, java.lang.Boolean inviteable)Creates a thread which is not related to a message.Constructors in org.javacord.api.entity.channel with parameters of type ChannelType Constructor Description ServerThreadChannelBuilder(ServerTextChannel serverTextChannel, ChannelType threadType, java.lang.String name)Creates a new server thread channel builder for a ServerTextChannel. -
Uses of ChannelType in org.javacord.api.entity.channel.internal
Methods in org.javacord.api.entity.channel.internal with parameters of type ChannelType Modifier and Type Method Description voidServerThreadChannelBuilderDelegate. setChannelType(ChannelType channelType)Sets the thread channel type of the thread channel. -
Uses of ChannelType in org.javacord.api.entity.message.component
Methods in org.javacord.api.entity.message.component that return types with arguments of type ChannelType Modifier and Type Method Description java.util.EnumSet<ChannelType>SelectMenu. getChannelTypes()Get the channel types of this select menu if it's of typeComponentType.SELECT_MENU_CHANNEL.Methods in org.javacord.api.entity.message.component with parameters of type ChannelType Modifier and Type Method Description SelectMenuBuilderSelectMenuBuilder. addChannelType(ChannelType channelType)Add a channel type to the select menu.Method parameters in org.javacord.api.entity.message.component with type arguments of type ChannelType Modifier and Type Method Description SelectMenuBuilderSelectMenuBuilder. addChannelTypes(java.lang.Iterable<ChannelType> channelTypes)Adds all given channel types to the select menu.static SelectMenuSelectMenu. createChannelMenu(java.lang.String customId, java.lang.Iterable<ChannelType> channelTypes)Creates a new select menu with the given values.static SelectMenuSelectMenu. createChannelMenu(java.lang.String customId, java.lang.Iterable<ChannelType> channelTypes, boolean isDisabled)Creates a new select menu with the given values.static SelectMenuSelectMenu. createChannelMenu(java.lang.String customId, java.lang.String placeholder, int minimumValues, int maximumValues, java.lang.Iterable<ChannelType> channelTypes)Creates a new select menu with the given values.static SelectMenuSelectMenu. createChannelMenu(java.lang.String customId, java.lang.String placeholder, int minimumValues, int maximumValues, java.lang.Iterable<ChannelType> channelTypes, boolean isDisabled)Creates a new select menu with the given values.static SelectMenuSelectMenu. createChannelMenu(java.lang.String customId, java.lang.String placeholder, java.lang.Iterable<ChannelType> channelTypes)Creates a new select menu with the given values.static SelectMenuSelectMenu. createChannelMenu(java.lang.String customId, java.lang.String placeholder, java.lang.Iterable<ChannelType> channelTypes, boolean isDisabled)Creates a new select menu with the given values. -
Uses of ChannelType in org.javacord.api.entity.message.component.internal
Methods in org.javacord.api.entity.message.component.internal with parameters of type ChannelType Modifier and Type Method Description voidSelectMenuBuilderDelegate. addChannelType(ChannelType channelType)Add a channel type to the select menu. -
Uses of ChannelType in org.javacord.api.entity.server.invite
Methods in org.javacord.api.entity.server.invite that return ChannelType Modifier and Type Method Description ChannelTypeInvite. getChannelType()Gets the type of the channel. -
Uses of ChannelType in org.javacord.api.interaction
Methods in org.javacord.api.interaction that return types with arguments of type ChannelType Modifier and Type Method Description java.util.Set<ChannelType>SlashCommandOption. getChannelTypes()If the option is of typeSlashCommandOptionType.CHANNEL, the channels shown will be restricted to these types.Methods in org.javacord.api.interaction with parameters of type ChannelType Modifier and Type Method Description SlashCommandOptionBuilderSlashCommandOptionBuilder. addChannelType(ChannelType channelType)Adds a channel type to the slash command option.Method parameters in org.javacord.api.interaction with type arguments of type ChannelType Modifier and Type Method Description static SlashCommandOptionSlashCommandOption. createChannelOption(java.lang.String name, java.lang.String description, boolean required, java.util.Collection<ChannelType> channelTypes)Create a new slash command option to be used with a slash command builder.SlashCommandOptionBuilderSlashCommandOptionBuilder. setChannelTypes(java.util.Collection<ChannelType> channelTypes)Sets the channel types for the slash command option. -
Uses of ChannelType in org.javacord.api.interaction.internal
Methods in org.javacord.api.interaction.internal with parameters of type ChannelType Modifier and Type Method Description voidSlashCommandOptionBuilderDelegate. addChannelType(ChannelType channelType)Add a channel type to the slash command option.Method parameters in org.javacord.api.interaction.internal with type arguments of type ChannelType Modifier and Type Method Description voidSlashCommandOptionBuilderDelegate. setChannelTypes(java.util.Collection<ChannelType> channelTypes)Sets the channel types for the slash command option.
-