snowtransfer
Advanced tools
Comparing version 0.3.5 to 0.3.6
declare const _default: { | ||
REST_API_VERSION: 9; | ||
GET_CHANNEL_MESSAGES_MAX_RESULTS: 100; | ||
GET_GUILD_SCHEDULED_EVENT_USERS_MAX_RESULTS: 100; | ||
BULK_DELETE_MESSAGES_MIN: 2; | ||
@@ -5,0 +6,0 @@ BULK_DELETE_MESSAGES_MAX: 100; |
@@ -5,2 +5,3 @@ "use strict"; | ||
GET_CHANNEL_MESSAGES_MAX_RESULTS: 100, | ||
GET_GUILD_SCHEDULED_EVENT_USERS_MAX_RESULTS: 100, | ||
BULK_DELETE_MESSAGES_MIN: 2, | ||
@@ -7,0 +8,0 @@ BULK_DELETE_MESSAGES_MAX: 100, |
@@ -56,2 +56,5 @@ declare const _default: { | ||
GUILD_ROLES: (guildID: string) => string; | ||
SCHEDULED_EVENTS: (guildID: string) => string; | ||
SCHEDULED_EVENT: (guildID: string, eventId: string) => string; | ||
SCHEDULE_EVENT_USERS: (guildID: string, eventId: string) => string; | ||
GUILD_STICKER: (guildID: string, stickerID: string) => string; | ||
@@ -58,0 +61,0 @@ GUILD_STICKERS: (guildID: string) => string; |
@@ -67,2 +67,5 @@ "use strict"; | ||
GUILD_ROLES: (guildID) => `/guilds/${guildID}/roles`, | ||
SCHEDULED_EVENTS: (guildID) => `guilds/${guildID}/scheduled-events`, | ||
SCHEDULED_EVENT: (guildID, eventId) => `guilds/${guildID}/scheduled-events/${eventId}`, | ||
SCHEDULE_EVENT_USERS: (guildID, eventId) => `guilds/${guildID}/scheduled-events/${eventId}/users`, | ||
GUILD_STICKER: (guildID, stickerID) => `/guilds/${guildID}/stickers/${stickerID}`, | ||
@@ -69,0 +72,0 @@ GUILD_STICKERS: (guildID) => `/guilds/${guildID}/stickers`, |
@@ -339,3 +339,3 @@ "use strict"; | ||
async createGuildTimeout(guildId, memberId, data) { | ||
return this.requestHandler.request(Endpoints_1.default.GUILD_MEMBER(guildId, memberId), 'patch', 'json', data); | ||
return this.requestHandler.request(Endpoints_1.default.GUILD_MEMBER(guildId, memberId), "patch", "json", data); | ||
} | ||
@@ -342,0 +342,0 @@ /** |
@@ -8,2 +8,3 @@ import Ratelimiter from "./Ratelimiter"; | ||
import GuildMethods from "./methods/Guilds"; | ||
import GuildScheduledEventMethods from "./methods/GuildScheduledEvent"; | ||
import GuildTemplateMethods from "./methods/GuildTemplate"; | ||
@@ -34,2 +35,3 @@ import InteractionMethods from "./methods/Interactions"; | ||
guild: GuildMethods; | ||
guildScheduledEvent: GuildScheduledEventMethods; | ||
guildTemplate: GuildTemplateMethods; | ||
@@ -36,0 +38,0 @@ interaction: InteractionMethods; |
@@ -12,2 +12,3 @@ "use strict"; | ||
const Guilds_1 = __importDefault(require("./methods/Guilds")); | ||
const GuildScheduledEvent_1 = __importDefault(require("./methods/GuildScheduledEvent")); | ||
const GuildTemplate_1 = __importDefault(require("./methods/GuildTemplate")); | ||
@@ -48,2 +49,3 @@ const Interactions_1 = __importDefault(require("./methods/Interactions")); | ||
this.guild = new Guilds_1.default(this.requestHandler); | ||
this.guildScheduledEvent = new GuildScheduledEvent_1.default(this.requestHandler); | ||
this.guildTemplate = new GuildTemplate_1.default(this.requestHandler); | ||
@@ -50,0 +52,0 @@ this.interaction = new Interactions_1.default(this.requestHandler, this.webhook); |
{ | ||
"name": "snowtransfer", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "Minimalistic Rest client for the Discord Api", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
291075
44
5931