Class Channel

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Channel.Type  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deleteChannel​(Bot bot)  
      java.lang.String getId()  
      Channel.Type getType()  
      Channel modifyChannel​(@NotNull java.lang.String field, @org.jetbrains.annotations.NotNull int value, @NotNull Bot bot)
      Modifies a specific field in a channel.
      Channel modifyChannel​(@NotNull java.lang.String field, @NotNull java.lang.String value, @NotNull Bot bot)
      Modifies a specific field in a channel.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getId

        public java.lang.String getId()
      • 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 a DiscordException if the field edited is not avaliable in the current channel type.
        Parameters:
        field - The name of the field
        value - The String value to set
        bot - 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 a DiscordException if the field edited is not avaliable in the current channel type.
        Parameters:
        field - The name of the field
        value - The int value to set
        bot - The bot to perform the action as
        Returns:
        The new channel
        See Also:
        Discord Modify Channel Params
      • deleteChannel

        public void deleteChannel​(Bot bot)