add external slashcommands management

Этот коммит содержится в:
Nicolas Clerc
2016-02-15 09:11:35 +01:00
родитель 809779a87f
Коммит 5e2596598f
9 изменённых файлов: 163 добавлений и 29 удалений

Просмотреть файл

@@ -1002,12 +1002,13 @@ export function regenCommandToken(data, success, error) {
});
}
export function listCommands(success, error) {
export function listCommands(data, success, error) {
$.ajax({
url: '/api/v1/commands/list',
dataType: 'json',
contentType: 'application/json',
type: 'GET',
type: 'POST',
data: JSON.stringify(data),
success,
error: function onError(xhr, status, err) {
var e = handleError('listCommands', xhr, status, err);