@ CheckReturnValue public ChannelAction setTopic ( String topic ) { if ( type != ChannelType . TEXT ) throw new UnsupportedOperationException ( "Can only set the topic for a TextChannel!" ) ; if ( topic != null && topic . length ( ) > 1024 ) throw new IllegalArgumentException ( "Channel Topic must not be greater than 1024 in length!" ) ; this . topic = topic ; return this ; }
Sets the topic for the new TextChannel