@discordjs/rest
Advanced tools
Comparing version 0.5.0-dev.1653480262-68d5169 to 0.5.0-dev.1654344278-a45bef4
@@ -107,27 +107,27 @@ "use strict"; | ||
"@sapphire/async-queue": "^1.3.1", | ||
"@sapphire/snowflake": "^3.2.1", | ||
"discord-api-types": "^0.33.0", | ||
tslib: "^2.3.1", | ||
undici: "^5.2.0" | ||
"@sapphire/snowflake": "^3.2.2", | ||
"discord-api-types": "^0.33.2", | ||
tslib: "^2.4.0", | ||
undici: "^5.4.0" | ||
}, | ||
devDependencies: { | ||
"@babel/core": "^7.17.9", | ||
"@babel/plugin-proposal-decorators": "^7.17.9", | ||
"@babel/preset-env": "^7.16.11", | ||
"@babel/preset-typescript": "^7.16.7", | ||
"@babel/core": "^7.18.2", | ||
"@babel/plugin-proposal-decorators": "^7.18.2", | ||
"@babel/preset-env": "^7.18.2", | ||
"@babel/preset-typescript": "^7.17.12", | ||
"@discordjs/ts-docgen": "^0.4.1", | ||
"@types/jest": "^27.4.1", | ||
"@typescript-eslint/eslint-plugin": "^5.19.0", | ||
"@typescript-eslint/parser": "^5.19.0", | ||
"@types/jest": "^28.1.0", | ||
"@typescript-eslint/eslint-plugin": "^5.27.0", | ||
"@typescript-eslint/parser": "^5.27.0", | ||
"babel-plugin-const-enum": "^1.2.0", | ||
"babel-plugin-transform-typescript-metadata": "^0.3.2", | ||
eslint: "^8.13.0", | ||
eslint: "^8.17.0", | ||
"eslint-config-marine": "^9.4.1", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
jest: "^27.5.1", | ||
jest: "^28.1.0", | ||
prettier: "^2.6.2", | ||
tsup: "^5.12.5", | ||
typedoc: "^0.22.15", | ||
typescript: "^4.6.3" | ||
tsup: "^6.0.1", | ||
typedoc: "^0.22.17", | ||
typescript: "^4.7.3" | ||
}, | ||
@@ -235,2 +235,5 @@ engines: { | ||
} | ||
guildMemberBanner(guildId, userId, bannerHash, options) { | ||
return this.dynamicMakeURL(`/guilds/${guildId}/users/${userId}/banner`, bannerHash, options); | ||
} | ||
icon(id, iconHash, options) { | ||
@@ -237,0 +240,0 @@ return this.dynamicMakeURL(`/icons/${id}/${iconHash}`, iconHash, options); |
@@ -111,2 +111,10 @@ import { ImageExtension, ImageSize, StickerExtension } from './utils/constants'; | ||
/** | ||
* Generates a guild member banner URL. | ||
* @param guildId The id of the guild | ||
* @param userId The id of the user | ||
* @param bannerHash The hash provided by Discord for this banner | ||
* @param options Optional options for the banner | ||
*/ | ||
guildMemberBanner(guildId: string, userId: string, bannerHash: string, options?: Readonly<ImageURLOptions>): string; | ||
/** | ||
* Generates an icon URL, e.g. for a guild. | ||
@@ -113,0 +121,0 @@ * @param id The id that has the icon splash |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { EventEmitter } from 'node:events'; | ||
@@ -3,0 +5,0 @@ import Collection from '@discordjs/collection'; |
{ | ||
"name": "@discordjs/rest", | ||
"version": "0.5.0-dev.1653480262-68d5169", | ||
"version": "0.5.0-dev.1654344278-a45bef4", | ||
"description": "The REST API for discord.js", | ||
@@ -55,27 +55,27 @@ "scripts": { | ||
"@sapphire/async-queue": "^1.3.1", | ||
"@sapphire/snowflake": "^3.2.1", | ||
"discord-api-types": "^0.33.0", | ||
"tslib": "^2.3.1", | ||
"undici": "^5.2.0" | ||
"@sapphire/snowflake": "^3.2.2", | ||
"discord-api-types": "^0.33.2", | ||
"tslib": "^2.4.0", | ||
"undici": "^5.4.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.17.9", | ||
"@babel/plugin-proposal-decorators": "^7.17.9", | ||
"@babel/preset-env": "^7.16.11", | ||
"@babel/preset-typescript": "^7.16.7", | ||
"@babel/core": "^7.18.2", | ||
"@babel/plugin-proposal-decorators": "^7.18.2", | ||
"@babel/preset-env": "^7.18.2", | ||
"@babel/preset-typescript": "^7.17.12", | ||
"@discordjs/ts-docgen": "^0.4.1", | ||
"@types/jest": "^27.4.1", | ||
"@typescript-eslint/eslint-plugin": "^5.19.0", | ||
"@typescript-eslint/parser": "^5.19.0", | ||
"@types/jest": "^28.1.0", | ||
"@typescript-eslint/eslint-plugin": "^5.27.0", | ||
"@typescript-eslint/parser": "^5.27.0", | ||
"babel-plugin-const-enum": "^1.2.0", | ||
"babel-plugin-transform-typescript-metadata": "^0.3.2", | ||
"eslint": "^8.13.0", | ||
"eslint": "^8.17.0", | ||
"eslint-config-marine": "^9.4.1", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"jest": "^27.5.1", | ||
"jest": "^28.1.0", | ||
"prettier": "^2.6.2", | ||
"tsup": "^5.12.5", | ||
"typedoc": "^0.22.15", | ||
"typescript": "^4.6.3" | ||
"tsup": "^6.0.1", | ||
"typedoc": "^0.22.17", | ||
"typescript": "^4.7.3" | ||
}, | ||
@@ -82,0 +82,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
305308
2866
Updated@sapphire/snowflake@^3.2.2
Updateddiscord-api-types@^0.33.2
Updatedtslib@^2.4.0
Updatedundici@^5.4.0