Skip to content

Commit 183080e

Browse files
committed
docs: add jsdoc and typings for HTTPOptions.template
1 parent 55c3041 commit 183080e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/util/Constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ exports.DefaultOptions = {
7878
* @property {string} [api='https://discord.com/api'] Base url of the API
7979
* @property {string} [cdn='https://cdn.discordapp.com'] Base url of the CDN
8080
* @property {string} [invite='https://discord.gg'] Base url of invites
81+
* @property {string} [template='https://discord.com/template'] Base url of templates
8182
*/
8283
http: {
8384
version: 7,

typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,6 @@ declare module 'discord.js' {
908908

909909
export class GuildTemplate extends Base {
910910
constructor(client: Client, data: object);
911-
private _patch(data: object): void;
912911
public readonly url: string;
913912
public code: string;
914913
public name: string;
@@ -2691,6 +2690,7 @@ declare module 'discord.js' {
26912690
host?: string;
26922691
cdn?: string;
26932692
invite?: string;
2693+
template?: string;
26942694
}
26952695

26962696
type ImageSize = 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096;

0 commit comments

Comments
 (0)