@ CheckReturnValue public ChannelAction setUserlimit ( Integer userlimit ) { if ( type != ChannelType . VOICE ) throw new UnsupportedOperationException ( "Can only set the userlimit for a VoiceChannel!" ) ; if ( userlimit != null && ( userlimit < 0 || userlimit > 99 ) ) throw new IllegalArgumentException ( "Userlimit must be between 0-99!" ) ; this . userlimit = userlimit ; return this ; }
Sets the userlimit for the new VoiceChannel