Constructors
constructor
- new SDK(key?, baseURL?): SDK
-
Parameters
-
Optional key: string
-
Optional baseURL: string
Returns SDK
Properties
Private baseURL
baseURL: string
Accessors
api
- get api(): {
ball: (() => Response<EightBall>);
dbl: {
get: ((token, id) => Response<DBLBotGet | DBLUserGet>);
post: ((token, id, servers, shards?) => Promise<Status>);
};
docs: ((search, project?, branch?) => Response<DJSDocs>);
dogbreed: (() => Status);
facts: ((type) => Response<Fact | Facts>);
invites: (() => Status);
lyrics: ((name) => Response<Lyrics>);
math: ((problem) => Response<Math>);
memes: ((clean?) => Response<Image>);
npm: ((name) => Response<NPM>);
photos: ((image) => Response<Image>);
platform: {
fortnite: ((token, name, platform?) => Promise<any>);
imdb: ((token, show) => Response<IMDBMovie | IMDBShow>);
paladins: (() => Status);
picarto: ((nameOrID) => Response<Picarto>);
roblox: ((id) => Response<RobloxUser>);
robloxgroup: ((id) => Response<RobloxGroup>);
twitch: (() => Status);
ytsearch: ((token, name, type?) => Promise<any>);
ytstats: ((token, IDOrName) => Response<YTStats>);
};
special: ((image) => Response<Image>);
time: ((place, all?) => Response<Time | AllTime>);
translate: ((to, text) => Response<Translate>);
}
-
Returns {
ball: (() => Response<EightBall>);
dbl: {
get: ((token, id) => Response<DBLBotGet | DBLUserGet>);
post: ((token, id, servers, shards?) => Promise<Status>);
};
docs: ((search, project?, branch?) => Response<DJSDocs>);
dogbreed: (() => Status);
facts: ((type) => Response<Fact | Facts>);
invites: (() => Status);
lyrics: ((name) => Response<Lyrics>);
math: ((problem) => Response<Math>);
memes: ((clean?) => Response<Image>);
npm: ((name) => Response<NPM>);
photos: ((image) => Response<Image>);
platform: {
fortnite: ((token, name, platform?) => Promise<any>);
imdb: ((token, show) => Response<IMDBMovie | IMDBShow>);
paladins: (() => Status);
picarto: ((nameOrID) => Response<Picarto>);
roblox: ((id) => Response<RobloxUser>);
robloxgroup: ((id) => Response<RobloxGroup>);
twitch: (() => Status);
ytsearch: ((token, name, type?) => Promise<any>);
ytstats: ((token, IDOrName) => Response<YTStats>);
};
special: ((image) => Response<Image>);
time: ((place, all?) => Response<Time | AllTime>);
translate: ((to, text) => Response<Translate>);
}
-
-
dbl: {
get: ((token, id) => Response<DBLBotGet | DBLUserGet>);
post: ((token, id, servers, shards?) => Promise<Status>);
}
-
-
post: ((token, id, servers, shards?) => Promise<Status>)
-
- (token, id, servers, shards?): Promise<Status>
-
Parameters
-
token: string
-
id: string
-
servers: number
-
shards: number = 0
Returns Promise<Status>
-
docs: ((search, project?, branch?) => Response<DJSDocs>)
-
- (search, project?, branch?): Response<DJSDocs>
-
Parameters
-
search: string
-
project: string = "stable"
-
branch: string = "stable"
-
dogbreed: (() => Status)
-
-
invites: (() => Status)
-
-
-
-
-
-
platform: {
fortnite: ((token, name, platform?) => Promise<any>);
imdb: ((token, show) => Response<IMDBMovie | IMDBShow>);
paladins: (() => Status);
picarto: ((nameOrID) => Response<Picarto>);
roblox: ((id) => Response<RobloxUser>);
robloxgroup: ((id) => Response<RobloxGroup>);
twitch: (() => Status);
ytsearch: ((token, name, type?) => Promise<any>);
ytstats: ((token, IDOrName) => Response<YTStats>);
}
-
fortnite: ((token, name, platform?) => Promise<any>)
-
- (token, name, platform?): Promise<any>
-
Parameters
-
token: string
-
name: string
-
platform: string = "pc"
Returns Promise<any>
-
-
paladins: (() => Status)
-
-
-
-
twitch: (() => Status)
-
ytsearch: ((token, name, type?) => Promise<any>)
-
- (token, name, type?): Promise<any>
-
Parameters
-
token: string
-
name: string
-
type: string = "video"
Returns Promise<any>
-
ytstats: ((token, IDOrName) => Response<YTStats>)
-
- (token, IDOrName): Response<YTStats>
-
Parameters
-
token: string
-
IDOrName: string
-
-
-
automod
- get automod(): {
images: ((token, urls?, percent?) => Response<AutoModImages>);
links: ((message, options?) => Response<AutoModLinks>);
words: ((message, words?, emojis?) => Response<AutoModWords>);
}
-
Returns {
images: ((token, urls?, percent?) => Response<AutoModImages>);
links: ((message, options?) => Response<AutoModLinks>);
words: ((message, words?, emojis?) => Response<AutoModWords>);
}
-
-
- (token, urls?, percent?): Response<AutoModImages>
-
Parameters
-
token: string
-
urls: string[] = []
-
percent: number = 89
-
-
- (message, options?): Response<AutoModLinks>
-
Parameters
-
message: string
-
options: {
prefix: null | string;
regexp: boolean;
} = ...
-
prefix: null | string
-
regexp: boolean
-
words: ((message, words?, emojis?) => Response<AutoModWords>)
-
- (message, words?, emojis?): Response<AutoModWords>
-
Parameters
-
message: string
-
words: string[] = []
-
emojis: string[] = []
docs
- get docs(): string
-
Returns string
support
- get support(): string
-
Returns string
Methods
Private fetch
- fetch(url, send?, useKey?, useBase?): Promise<any>
-
Parameters
-
url: string
-
Optional send: unknown
-
useKey: boolean = true
-
useBase: boolean = true
Returns Promise<any>