Class Channel
- java.lang.Object
-
- com.rodiconmc.rodicord.objects.channel.Channel
-
- Direct Known Subclasses:
CategoryChannel,DmChannel,GroupDmChannel,GuildChannel,VoiceChannel
public abstract class Channel extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChannel.Type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteChannel(Bot bot)java.lang.StringgetId()Channel.TypegetType()ChannelmodifyChannel(@NotNull java.lang.String field, @org.jetbrains.annotations.NotNull int value, @NotNull Bot bot)Modifies a specific field in a channel.ChannelmodifyChannel(@NotNull java.lang.String field, @NotNull java.lang.String value, @NotNull Bot bot)Modifies a specific field in a channel.
-
-
-
Method Detail
-
getId
public java.lang.String getId()
-
getType
public Channel.Type getType()
-
modifyChannel
public Channel modifyChannel(@NotNull @NotNull java.lang.String field, @NotNull @NotNull java.lang.String value, @NotNull @NotNull Bot bot)
Modifies a specific field in a channel. May throw aDiscordExceptionif the field edited is not avaliable in the current channel type.- Parameters:
field- The name of the fieldvalue- The String value to setbot- The bot to perform the action as- Returns:
- The new channel
- See Also:
- Discord Modify Channel Params
-
modifyChannel
public Channel modifyChannel(@NotNull @NotNull java.lang.String field, @NotNull @org.jetbrains.annotations.NotNull int value, @NotNull @NotNull Bot bot)
Modifies a specific field in a channel. May throw aDiscordExceptionif the field edited is not avaliable in the current channel type.- Parameters:
field- The name of the fieldvalue- The int value to setbot- The bot to perform the action as- Returns:
- The new channel
- See Also:
- Discord Modify Channel Params
-
deleteChannel
public void deleteChannel(Bot bot)
-
-