@discordjs/rest
Advanced tools
Comparing version 3.0.0-dev.1736942705-6a42c5f92 to 3.0.0-dev.1737029085-0c40bc195
@@ -574,5 +574,6 @@ import * as url from 'url'; | ||
* @param emojiId - The emoji id | ||
* @param animated - Whether the emoji is animated | ||
* @param options - Optional options for the emoji | ||
*/ | ||
emoji(emojiId: string, options?: Readonly<BaseImageURLOptions>): string; | ||
emoji(emojiId: string, animated: boolean, options?: Readonly<ImageURLOptions>): string; | ||
/** | ||
@@ -579,0 +580,0 @@ * Generates a guild member avatar URL. |
@@ -127,3 +127,3 @@ "use strict"; | ||
var import_v10 = require("discord-api-types/v10"); | ||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 3.0.0-dev.1736942705-6a42c5f92)`; | ||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 3.0.0-dev.1737029085-0c40bc195)`; | ||
var DefaultUserAgentAppendix = (0, import_util.getUserAgentAppendix)(); | ||
@@ -266,6 +266,7 @@ var DefaultRestOptions = { | ||
* @param emojiId - The emoji id | ||
* @param animated - Whether the emoji is animated | ||
* @param options - Optional options for the emoji | ||
*/ | ||
emoji(emojiId, options) { | ||
return this.makeURL(`/emojis/${emojiId}`, options); | ||
emoji(emojiId, animated, options) { | ||
return this.dynamicMakeURL(`/emojis/${emojiId}`, animated ? "a_" : "", options); | ||
} | ||
@@ -1452,3 +1453,3 @@ /** | ||
// src/shared.ts | ||
var version = "3.0.0-dev.1736942705-6a42c5f92"; | ||
var version = "3.0.0-dev.1737029085-0c40bc195"; | ||
@@ -1455,0 +1456,0 @@ // src/index.ts |
@@ -574,5 +574,6 @@ import * as url from 'url'; | ||
* @param emojiId - The emoji id | ||
* @param animated - Whether the emoji is animated | ||
* @param options - Optional options for the emoji | ||
*/ | ||
emoji(emojiId: string, options?: Readonly<BaseImageURLOptions>): string; | ||
emoji(emojiId: string, animated: boolean, options?: Readonly<ImageURLOptions>): string; | ||
/** | ||
@@ -579,0 +580,0 @@ * Generates a guild member avatar URL. |
@@ -61,3 +61,3 @@ "use strict"; | ||
var import_v10 = require("discord-api-types/v10"); | ||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 3.0.0-dev.1736942705-6a42c5f92)`; | ||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 3.0.0-dev.1737029085-0c40bc195)`; | ||
var DefaultUserAgentAppendix = (0, import_util.getUserAgentAppendix)(); | ||
@@ -200,6 +200,7 @@ var DefaultRestOptions = { | ||
* @param emojiId - The emoji id | ||
* @param animated - Whether the emoji is animated | ||
* @param options - Optional options for the emoji | ||
*/ | ||
emoji(emojiId, options) { | ||
return this.makeURL(`/emojis/${emojiId}`, options); | ||
emoji(emojiId, animated, options) { | ||
return this.dynamicMakeURL(`/emojis/${emojiId}`, animated ? "a_" : "", options); | ||
} | ||
@@ -1386,3 +1387,3 @@ /** | ||
// src/shared.ts | ||
var version = "3.0.0-dev.1736942705-6a42c5f92"; | ||
var version = "3.0.0-dev.1737029085-0c40bc195"; | ||
@@ -1389,0 +1390,0 @@ // src/web.ts |
{ | ||
"$schema": "https://json.schemastore.org/package.json", | ||
"name": "@discordjs/rest", | ||
"version": "3.0.0-dev.1736942705-6a42c5f92", | ||
"version": "3.0.0-dev.1737029085-0c40bc195", | ||
"description": "The REST API for discord.js", | ||
@@ -82,4 +82,4 @@ "exports": { | ||
"uuid": "^11.0.3", | ||
"@discordjs/collection": "^2.1.1", | ||
"@discordjs/util": "^1.1.1" | ||
"@discordjs/util": "^1.1.1", | ||
"@discordjs/collection": "^2.1.1" | ||
}, | ||
@@ -100,4 +100,4 @@ "devDependencies": { | ||
"vitest": "^2.1.8", | ||
"@discordjs/scripts": "^0.1.0", | ||
"@discordjs/api-extractor": "^7.38.1" | ||
"@discordjs/api-extractor": "^7.38.1", | ||
"@discordjs/scripts": "^0.1.0" | ||
}, | ||
@@ -104,0 +104,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
773998
7609