wotblitz.js
function(access_token, title, text, type, importance, expires_at) {
		if (!expires_at) return Promise.reject(new Error('wotblitz.clanmessages.create: all arguments are required'));

		return request({
			hostname: hosts.wotb,
			path: '/wotb/clanmessages/create/'
		}, {
			access_token: access_token,
			expires_at: expires_at,
			importance: importance,
			text: text,
			title: title,
			type: type
		});
	}
function(access_token, title, text, type, importance, expires_at) {
		if (!expires_at) return Promise.reject(new Error('wotblitz.clanmessages.create: all arguments are required'));

		return request({
			hostname: hosts.wotb,
			path: '/wotb/clanmessages/create/'
		}, {
			access_token: access_token,
			expires_at: expires_at,
			importance: importance,
			text: text,
			title: title,
			type: type
		});
	}
function ( access_token , title , text , type , importance , expires_at ) { if ( ! expires_at ) return Promise . reject ( new Error ( 'wotblitz.clanmessages.create: all arguments are required' ) ) ; return request ( { hostname : hosts . wotb , path : '/wotb/clanmessages/create/' } , { access_token : access_token , expires_at : expires_at , importance : importance , text : text , title : title , type : type } ) ; }
Post a new message.

@param {string} access_token user's authentication string
@param {string} title message topic
@param {string} text message body
@param {string} type message category, values "general", "training", "meeting", or "battle"
@param {string} importance values "important" or "standard"
@param {string} expires_at invalidation date
@returns {Promise<Object>} resolves to the `message_id`
Post a new message .