oberknecht-api
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -28,3 +28,3 @@ import { jsonsplitter } from "@jubewe/jsonsplitter"; | ||
_getUser: (user: string) => Promise<[string, string, Object]>; | ||
ban: (broadcaster_id: string, target_user_id: string, reason: any, customtoken?: string) => Promise<import("../types/endpoints/ban").banResponse>; | ||
ban: (broadcaster_id: string, target_user_id: string, reason: string, customtoken?: string) => Promise<import("../types/endpoints/ban").banResponse>; | ||
deleteMessage: (broadcaster_id: string, message_id: string, customtoken?: string) => Promise<void>; | ||
@@ -31,0 +31,0 @@ delete: (broadcaster_id: string, message_id: string, customtoken?: string) => Promise<void>; |
@@ -139,3 +139,3 @@ "use strict"; | ||
ban = (broadcaster_id, target_user_id, reason, customtoken) => { | ||
return (0, ban_1.ban)(this.symbol, broadcaster_id, target_user_id, reason, customtoken); | ||
return (0, ban_1.ban)(this.symbol, broadcaster_id, target_user_id, reason, undefined, customtoken); | ||
}; | ||
@@ -156,3 +156,3 @@ deleteMessage = (broadcaster_id, message_id, customtoken) => { | ||
timeout = (broadcaster_id, target_user_id, duration, reason, customtoken) => { | ||
return (0, ban_2.ban)(this.symbol, broadcaster_id, target_user_id, duration, reason, customtoken); | ||
return (0, ban_2.ban)(this.symbol, broadcaster_id, target_user_id, reason, duration, customtoken); | ||
}; | ||
@@ -159,0 +159,0 @@ unban = (broadcaster_id, target_user_id, customtoken) => { |
import { banResponse } from "../types/endpoints/ban"; | ||
export declare function ban(sym: string, broadcaster_id: string | undefined, target_user_id: string, duration?: string, reason?: string, customtoken?: string): Promise<banResponse>; | ||
export declare function ban(sym: string, broadcaster_id: string | undefined, target_user_id: string, reason?: string, duration?: string, customtoken?: string): Promise<banResponse>; |
@@ -10,3 +10,3 @@ "use strict"; | ||
const oberknecht_utils_1 = require("oberknecht-utils"); | ||
async function ban(sym, broadcaster_id, target_user_id, duration, reason, customtoken) { | ||
async function ban(sym, broadcaster_id, target_user_id, reason, duration, customtoken) { | ||
return new Promise(async (resolve, reject) => { | ||
@@ -13,0 +13,0 @@ if (!(sym ?? undefined) && !(customtoken ?? undefined)) |
@@ -185,3 +185,3 @@ import { i } from "../index"; | ||
target_user_id: string, | ||
reason, | ||
reason: string, | ||
customtoken?: string | ||
@@ -194,2 +194,3 @@ ) => { | ||
reason, | ||
undefined, | ||
customtoken | ||
@@ -240,4 +241,4 @@ ); | ||
target_user_id, | ||
reason, | ||
duration, | ||
reason, | ||
customtoken | ||
@@ -244,0 +245,0 @@ ); |
@@ -13,4 +13,4 @@ import { request } from "oberknecht-request"; | ||
target_user_id: string, | ||
reason?: string, | ||
duration?: string, | ||
reason?: string, | ||
customtoken?: string | ||
@@ -17,0 +17,0 @@ ) { |
{ | ||
"name": "oberknecht-api", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "A client for easy usage of the Twitch API (Helix)", | ||
@@ -5,0 +5,0 @@ "main": "./export", |
442506
10076