snowtransfer
Advanced tools
Comparing version 0.7.3 to 0.8.0
@@ -1,2 +0,2 @@ | ||
var D=Object.defineProperty;var We=Object.getOwnPropertyDescriptor;var ve=Object.getOwnPropertyNames;var $e=Object.prototype.hasOwnProperty;var je=(n,e)=>()=>(n&&(e=n(n=0)),e);var d=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),we=(n,e)=>{for(var t in e)D(n,t,{get:e[t],enumerable:!0})},Je=(n,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ve(e))!$e.call(n,r)&&r!==t&&D(n,r,{get:()=>e[r],enumerable:!(s=We(e,r))||s.enumerable});return n};var Ke=n=>Je(D({},"__esModule",{value:!0}),n);var T=d((Qt,Ee)=>{var xe=require("form-data"),Ve={REST_API_VERSION:10,GET_CHANNEL_MESSAGES_MIN_RESULTS:1,GET_CHANNEL_MESSAGES_MAX_RESULTS:100,GET_GUILD_SCHEDULED_EVENT_USERS_MIN_RESULTS:1,GET_GUILD_SCHEDULED_EVENT_USERS_MAX_RESULTS:100,SEARCH_MEMBERS_MIN_RESULTS:1,SEARCH_MEMBERS_MAX_RESULTS:1e3,BULK_DELETE_MESSAGES_MIN:2,BULK_DELETE_MESSAGES_MAX:100,OK_STATUS_CODES:[200,201,204,304],standardMultipartHandler(n){let e=new xe;if(n.files&&Array.isArray(n.files)&&n.files.every(t=>!!t.name&&!!t.file)){let t=0;for(let s of n.files)e.append(`files[${t}]`,s.file,{filename:s.name}),delete s.file,t++}return n.data&&delete n.files,e.append("payload_json",JSON.stringify(n)),e}};Ee.exports=Ve});var E=d((Ft,Re)=>{"use strict";var Qe=T(),i={BASE_URL:"/api/v"+Qe.REST_API_VERSION,BASE_HOST:"https://discord.com",CDN_URL:"https://cdn.discordapp.com",APPLICATION_COMMAND:(n,e)=>`${i.APPLICATION_COMMANDS(n)}/${e}`,APPLICATION_COMMANDS:n=>`/applications/${n}/commands`,APPLICATION_GUILD_COMMANDS_PERMISSIONS:(n,e)=>`${i.APPLICATION_GUILD_COMMANDS(n,e)}/permissions`,APPLICATION_GUILD_COMMAND_PERMISSIONS:(n,e,t)=>`${i.APPLICATION_GUILD_COMMAND(n,e,t)}/permissions`,APPLICATION_GUILD_COMMAND:(n,e,t)=>`${i.APPLICATION_GUILD_COMMANDS(n,e)}/${t}`,APPLICATION_GUILD_COMMANDS:(n,e)=>`/applications/${n}/guilds/${e}/commands`,CHANNEL:n=>`${i.CHANNELS}/${n}`,CHANNEL_BULK_DELETE:n=>`${i.CHANNEL_MESSAGES(n)}/bulk-delete`,CHANNEL_FOLLOWERS:n=>`${i.CHANNEL(n)}/followers`,CHANNEL_INVITES:n=>`${i.CHANNEL(n)}/invites`,CHANNEL_MESSAGE:(n,e)=>`${i.CHANNEL_MESSAGES(n)}/${e}`,CHANNEL_MESSAGE_CROSSPOST:(n,e)=>`${i.CHANNEL_MESSAGE(n,e)}/crosspost`,CHANNEL_MESSAGE_REACTION:(n,e,t)=>`${i.CHANNEL_MESSAGE_REACTIONS(n,e)}/${t}`,CHANNEL_MESSAGE_REACTION_USER:(n,e,t,s)=>`${i.CHANNEL_MESSAGE_REACTION(n,e,t)}/${s}`,CHANNEL_MESSAGE_REACTIONS:(n,e)=>`${i.CHANNEL_MESSAGE(n,e)}/reactions`,CHANNEL_MESSAGE_THREADS:(n,e)=>`${i.CHANNEL_MESSAGE(n,e)}/threads`,CHANNEL_MESSAGES:n=>`${i.CHANNEL(n)}/messages`,CHANNEL_PERMISSION:(n,e)=>`${i.CHANNEL_PERMISSIONS(n)}/${e}`,CHANNEL_PERMISSIONS:n=>`${i.CHANNEL(n)}/permissions`,CHANNEL_PIN:(n,e)=>`${i.CHANNEL_PINS(n)}/${e}`,CHANNEL_PINS:n=>`${i.CHANNEL(n)}/pins`,CHANNEL_RECIPIENT:(n,e)=>`${i.CHANNEL(n)}/recipients/${e}`,CHANNEL_THREADS:n=>`${i.CHANNEL(n)}/threads`,CHANNEL_THREAD_MEMBER:(n,e)=>`${i.CHANNEL_THREAD_MEMBERS(n)}/${e}`,CHANNEL_THREAD_MEMBERS:n=>`${i.CHANNEL(n)}/thread-members`,CHANNEL_THREADS_ARCHIVED_PRIVATE:n=>`${i.CHANNEL_THREADS(n)}/archived/private`,CHANNEL_THREADS_ARCHIVED_PRIVATE_USER:n=>`${i.CHANNEL(n)}/users/@me/threads/archived/private`,CHANNEL_THREADS_ARCHIVED_PUBLIC:n=>`${i.CHANNEL_THREADS(n)}/archived/public`,CHANNEL_TYPING:n=>`${i.CHANNEL(n)}/typing`,CHANNEL_WEBHOOKS:n=>`${i.CHANNEL(n)}/webhooks`,CHANNELS:"/channels",GATEWAY:"/gateway",GATEWAY_BOT:"/gateway/bot",GUILD:n=>`${i.GUILDS}/${n}`,GUILD_AUDIT_LOGS:n=>`${i.GUILD(n)}/audit-logs`,GUILD_AUTO_MOD_RULE:(n,e)=>`${i.GUILD_AUTO_MOD_RULES(n)}/${e}`,GUILD_AUTO_MOD_RULES:n=>`${i.GUILD(n)}/auto-moderation/rules`,GUILD_BAN:(n,e)=>`${i.GUILD_BANS(n)}/${e}`,GUILD_BANS:n=>`${i.GUILD(n)}/bans`,GUILD_CHANNELS:n=>`${i.GUILD(n)}/channels`,GUILD_EMOJI:(n,e)=>`${i.GUILD_EMOJIS(n)}/${e}`,GUILD_EMOJIS:n=>`${i.GUILD(n)}/emojis`,GUILD_INVITES:n=>`${i.GUILD(n)}/invites`,GUILD_INTEGRATION:(n,e)=>`${i.GUILD_INTEGRATIONS(n)}/${e}`,GUILD_INTEGRATIONS:n=>`${i.GUILD(n)}/integrations`,GUILD_MEMBER:(n,e)=>`${i.GUILD_MEMBERS(n)}/${e}`,GUILD_MEMBER_ROLE:(n,e,t)=>`${i.GUILD_MEMBER(n,e)}/roles/${t}`,GUILD_MEMBERS:n=>`${i.GUILD(n)}/members`,GUILD_MEMBERS_SEARCH:n=>`${i.GUILD_MEMBERS(n)}/search`,GUILD_PREVIEW:n=>`${i.GUILD(n)}/preview`,GUILD_PRUNE:n=>`${i.GUILD(n)}/prune`,GUILD_ROLE:(n,e)=>`${i.GUILD_ROLES(n)}/${e}`,GUILD_ROLES:n=>`${i.GUILD(n)}/roles`,GUILD_SCHEDULED_EVENTS:n=>`${i.GUILD(n)}/scheduled-events`,GUILD_SCHEDULED_EVENT:(n,e)=>`${i.GUILD_SCHEDULED_EVENTS(n)}/${e}`,GUILD_SCHEDULED_EVENT_USERS:(n,e)=>`${i.GUILD_SCHEDULED_EVENT(n,e)}/users`,GUILD_STICKER:(n,e)=>`${i.GUILD_STICKERS(n)}/${e}`,GUILD_STICKERS:n=>`${i.GUILD(n)}/stickers`,GUILD_TEMPLATE:(n,e)=>`${i.GUILD_TEMPLATES(n)}/${e}`,GUILD_THREADS_ACTIVE:n=>`${i.GUILD(n)}/threads/active`,GUILD_TEMPLATES:n=>`${i.GUILD(n)}/templates`,GUILD_VANITY:n=>`${i.GUILD(n)}/vanity-url`,GUILD_VOICE_REGIONS:n=>`${i.GUILD(n)}/regions`,GUILD_VOICE_STATE_USER:(n,e)=>`${i.GUILD(n)}/voice-states/${e}`,GUILD_WEBHOOKS:n=>`${i.GUILD(n)}/webhooks`,GUILD_WELCOME_SCREEN:n=>`${i.GUILD(n)}/welcome-screen`,GUILD_WIDGET:n=>`${i.GUILD(n)}/widget.json`,GUILD_WIDGET_SETTINGS:n=>`${i.GUILD(n)}/widget`,GUILDS:"/guilds",INTERACTION_CALLBACK:(n,e)=>`/interactions/${n}/${e}/callback`,INVITES:n=>`/invites/${n}`,OAUTH2_APPLICATION:n=>`/oauth2/applications/${n}`,STAGE_INSTANCE_CHANNEL:n=>`${i.STAGE_INSTANCES}/${n}`,STAGE_INSTANCES:"/stage-instances",STICKER:n=>`/stickers/${n}`,TEMPLATE:n=>`/guilds/templates/${n}`,USER:n=>`${i.USERS}/${n}`,USER_APPLICATION_ROLE_CONNECTION:(n,e)=>`${i.USER(n)}/applications/${e}/role-connection`,USER_CHANNELS:n=>`${i.USER(n)}/channels`,USER_CONNECTIONS:n=>`${i.USER(n)}/connections`,USER_GUILD:(n,e)=>`${i.USER_GUILDS(n)}/${e}`,USER_GUILDS:n=>`${i.USER(n)}/guilds`,USERS:"/users",VOICE_REGIONS:"/voice/regions",WEBHOOK:n=>`/webhooks/${n}`,WEBHOOK_TOKEN:(n,e)=>`${i.WEBHOOK(n)}/${e}`,WEBHOOK_TOKEN_GITHUB:(n,e)=>`${i.WEBHOOK_TOKEN(n,e)}/github`,WEBHOOK_TOKEN_MESSAGE:(n,e,t)=>`/webhooks/${n}/${e}/messages/${t}`,WEBHOOK_TOKEN_SLACK:(n,e)=>`${i.WEBHOOK_TOKEN(n,e)}/slack`};Re.exports=i});var U=d((Xt,Se)=>{var Fe=E(),O=class{constructor(e){this.requestHandler=e}async getAuditLog(e,t){return this.requestHandler.request(Fe.GUILD_AUDIT_LOGS(e),"get","json",t)}};Se.exports=O});var k=d((Yt,ce)=>{var y=E(),f=class{constructor(e){this.requestHandler=e}async getAutoModerationRules(e){return this.requestHandler.request(y.GUILD_AUTO_MOD_RULES(e),"get","json")}async getAutoModerationRule(e,t){return this.requestHandler.request(y.GUILD_AUTO_MOD_RULE(e,t),"get","json")}async createAutoModerationRule(e,t){return this.requestHandler.request(y.GUILD_AUTO_MOD_RULES(e),"post","json",t)}async editAutoModerationRule(e,t,s){return this.requestHandler.request(y.GUILD_AUTO_MOD_RULE(e,t),"patch","json",s)}async deleteAutoModerationRule(e,t,s){return this.requestHandler.request(y.GUILD_AUTO_MOD_RULE(e,t),"delete","json",s?{reason:s}:void 0)}};ce.exports=f});var W=d((zt,pe)=>{var Pe=E(),B=class{constructor(e){this.requestHandler=e}getGateway(){return this.requestHandler.request(Pe.GATEWAY,"get","json")}getGatewayBot(){return this.requestHandler.request(Pe.GATEWAY_BOT,"get","json")}};pe.exports=B});var $=d((Zt,Te)=>{var l=E(),p=T(),Ae=/@([^<>@ ]*)/gsmu,v=class{constructor(e,t){this.requestHandler=e,this.disableEveryone=t}async getChannel(e){return this.requestHandler.request(l.CHANNEL(e),"get","json")}async updateChannel(e,t){return this.requestHandler.request(l.CHANNEL(e),"patch","json",t)}async deleteChannel(e,t){return this.requestHandler.request(l.CHANNEL(e),"delete","json",t?{reason:t}:void 0)}async getChannelMessages(e,t={limit:50}){if(t.around?(delete t.before,delete t.after):t.before?(delete t.around,delete t.after):t.after&&(delete t.before,delete t.around),t.limit!==void 0&&(t.limit<p.GET_CHANNEL_MESSAGES_MIN_RESULTS||t.limit>p.GET_CHANNEL_MESSAGES_MAX_RESULTS))throw new RangeError(`Amount of messages that may be requested has to be between ${p.GET_CHANNEL_MESSAGES_MIN_RESULTS} and ${p.GET_CHANNEL_MESSAGES_MAX_RESULTS}`);return this.requestHandler.request(l.CHANNEL_MESSAGES(e),"get","json",t)}async getChannelMessage(e,t){return this.requestHandler.request(l.CHANNEL_MESSAGE(e,t),"get","json")}async createMessage(e,t,s={disableEveryone:this.disableEveryone}){var r;if(typeof t!="string"&&!t.content&&!t.embeds&&!t.sticker_ids&&!t.components&&!t.files)throw new Error("Missing content, embeds, sticker_ids, components, or files");return typeof t=="string"&&(t={content:t}),t.content&&((r=s.disableEveryone)!=null?r:this.disableEveryone)&&(t.content=t.content.replace(Ae,he)),t.files?this.requestHandler.request(l.CHANNEL_MESSAGES(e),"post","multipart",p.standardMultipartHandler(t)):this.requestHandler.request(l.CHANNEL_MESSAGES(e),"post","json",t)}async crosspostMessage(e,t){return this.requestHandler.request(l.CHANNEL_MESSAGE_CROSSPOST(e,t),"post","json")}async createReaction(e,t,s){return this.requestHandler.request(l.CHANNEL_MESSAGE_REACTION_USER(e,t,s,"@me"),"put","json")}async deleteReactionSelf(e,t,s){return this.requestHandler.request(l.CHANNEL_MESSAGE_REACTION_USER(e,t,s,"@me"),"delete","json")}async deleteReaction(e,t,s,r){return r?this.requestHandler.request(l.CHANNEL_MESSAGE_REACTION_USER(e,t,s,r),"delete","json"):this.requestHandler.request(l.CHANNEL_MESSAGE_REACTION(e,t,s),"delete","json")}async getReactions(e,t,s,r){return this.requestHandler.request(l.CHANNEL_MESSAGE_REACTION(e,t,s),"get","json",r)}async deleteAllReactions(e,t){return this.requestHandler.request(l.CHANNEL_MESSAGE_REACTIONS(e,t),"delete","json")}async editMessage(e,t,s,r={disableEveryone:this.disableEveryone}){var o;return typeof s=="string"&&(s={content:s}),s.content&&((o=r.disableEveryone)!=null?o:this.disableEveryone)&&(s.content=s.content.replace(Ae,he)),s.files?this.requestHandler.request(l.CHANNEL_MESSAGE(e,t),"patch","multipart",p.standardMultipartHandler(s)):this.requestHandler.request(l.CHANNEL_MESSAGE(e,t),"patch","json",s)}async deleteMessage(e,t,s){return this.requestHandler.request(l.CHANNEL_MESSAGE(e,t),"delete","json",s?{reason:s}:void 0)}async bulkDeleteMessages(e,t,s){if(t.length<p.BULK_DELETE_MESSAGES_MIN||t.length>p.BULK_DELETE_MESSAGES_MAX)throw new RangeError(`Amount of messages to be deleted has to be between ${p.BULK_DELETE_MESSAGES_MIN} and ${p.BULK_DELETE_MESSAGES_MAX}`);let r=BigInt(Date.now()-142128e7)*BigInt(2)**BigInt(22),o=t.find(h=>BigInt(h)<r);if(o)throw new Error(`The message ${o} is older than 2 weeks and may not be deleted using the bulk delete endpoint`);let R={messages:t};return s&&Object.assign(R,{reason:s}),this.requestHandler.request(l.CHANNEL_BULK_DELETE(e),"post","json",R)}async editChannelPermission(e,t,s){return this.requestHandler.request(l.CHANNEL_PERMISSION(e,t),"put","json",s)}async getChannelInvites(e){return this.requestHandler.request(l.CHANNEL_INVITES(e),"get","json")}async createChannelInvite(e,t={max_age:86400,max_uses:0,temporary:!1,unique:!1}){return this.requestHandler.request(l.CHANNEL_INVITES(e),"post","json",t)}async deleteChannelPermission(e,t,s){return this.requestHandler.request(l.CHANNEL_PERMISSION(e,t),"delete","json",s?{reason:s}:void 0)}async followAnnouncementChannel(e,t){return this.requestHandler.request(l.CHANNEL_FOLLOWERS(e),"post","json",{webhook_channel_id:t})}async startChannelTyping(e){return this.requestHandler.request(l.CHANNEL_TYPING(e),"post","json")}async getChannelPinnedMessages(e){return this.requestHandler.request(l.CHANNEL_PINS(e),"get","json")}async addChannelPinnedMessage(e,t,s){return this.requestHandler.request(l.CHANNEL_PIN(e,t),"put","json",s?{reason:s}:void 0)}async removeChannelPinnedMessage(e,t,s){return this.requestHandler.request(l.CHANNEL_PIN(e,t),"delete","json",s?{reason:s}:void 0)}async createThreadWithMessage(e,t,s){return this.requestHandler.request(l.CHANNEL_MESSAGE_THREADS(e,t),"post","json",s)}async createThreadWithoutMessage(e,t){return this.requestHandler.request(l.CHANNEL_THREADS(e),"post","json",t)}async joinThread(e){return this.requestHandler.request(l.CHANNEL_THREAD_MEMBER(e,"@me"),"put","json")}async addThreadMember(e,t){return this.requestHandler.request(l.CHANNEL_THREAD_MEMBER(e,t),"put","json")}async leaveThread(e){return this.requestHandler.request(l.CHANNEL_THREAD_MEMBER(e,"@me"),"delete","json")}removeThreadMember(e,t){return this.requestHandler.request(l.CHANNEL_THREAD_MEMBER(e,t),"delete","json")}async getThreadMember(e,t,s){return this.requestHandler.request(l.CHANNEL_THREAD_MEMBER(e,t),"get","json",s?{with_member:!0}:void 0)}async getThreadMembers(e,t){return this.requestHandler.request(l.CHANNEL_THREAD_MEMBERS(e),"get","json",t)}async getChannelArchivedPublicThreads(e,t){return this.requestHandler.request(l.CHANNEL_THREADS_ARCHIVED_PUBLIC(e),"get","json",t)}async getChannelArchivedPrivateThreads(e,t){return this.requestHandler.request(l.CHANNEL_THREADS_ARCHIVED_PRIVATE(e),"get","json",t)}async getChannelArchivedPrivateThreadsUser(e,t){return this.requestHandler.request(l.CHANNEL_THREADS_ARCHIVED_PRIVATE_USER(e),"get","json",t)}},Xe=/^[&!]?\d+$/;function he(n,e){return Xe.test(e)?`@${e}`:`@\u200B${e}`}Te.exports=v});var w=d((es,Ie)=>{var Ye=require("form-data"),P=E(),j=class{constructor(e){this.requestHandler=e}async getEmojis(e){return this.requestHandler.request(P.GUILD_EMOJIS(e),"get","json")}async getEmoji(e,t){return this.requestHandler.request(P.GUILD_EMOJI(e,t),"get","json")}async createEmoji(e,t){return this.requestHandler.request(P.GUILD_EMOJIS(e),"post","json",t)}async updateEmoji(e,t,s){return this.requestHandler.request(P.GUILD_EMOJI(e,t),"patch","json",s)}async deleteEmoji(e,t,s){return this.requestHandler.request(P.GUILD_EMOJI(e,t),"delete","json",s?{reason:s}:void 0)}async getSticker(e){return this.requestHandler.request(P.STICKER(e),"get","json")}async getGuildStickers(e){return this.requestHandler.request(P.GUILD_STICKERS(e),"get","json")}async getGuildSticker(e,t){return this.requestHandler.request(P.GUILD_STICKER(e,t),"get","json")}createGuildSticker(e,t){let s=new Ye,r=t.reason;t.reason&&delete t.reason;for(let o of Object.keys(t))s.append(o,t[o]);return this.requestHandler.request(P.GUILD_STICKERS(e),"post","multipart",s,r?{"X-Audit-Log-Reason":r}:void 0)}updateGuildSticker(e,t,s){return this.requestHandler.request(P.GUILD_STICKER(e,t),"patch","json",s)}deleteGuildSticker(e,t,s){return this.requestHandler.request(P.GUILD_STICKER(e,t),"delete","json",s?{reason:s}:void 0)}};Ie.exports=j});var K=d((ts,ge)=>{var u=E(),b=T(),J=class{constructor(e){this.requestHandler=e}async createGuild(e){return this.requestHandler.request(u.GUILDS,"post","json",e)}async getGuild(e,t){return this.requestHandler.request(u.GUILD(e),"get","json",t!==void 0?{with_counts:t}:void 0)}async getGuildPreview(e){return this.requestHandler.request(u.GUILD_PREVIEW(e),"get","json")}async updateGuild(e,t){return this.requestHandler.request(u.GUILD(e),"patch","json",t)}async deleteGuild(e){return this.requestHandler.request(u.GUILD(e),"delete","json")}async getGuildChannels(e){return this.requestHandler.request(u.GUILD_CHANNELS(e),"get","json")}async createGuildChannel(e,t){return this.requestHandler.request(u.GUILD_CHANNELS(e),"post","json",t)}async updateChannelPositions(e,t,s){return this.requestHandler.request(u.GUILD_CHANNELS(e),"patch","json",t,s?{"X-Audit-Log-Reason":s}:void 0)}async listActiveThreads(e){return this.requestHandler.request(u.GUILD_THREADS_ACTIVE(e),"get","json")}async getGuildMember(e,t){return this.requestHandler.request(u.GUILD_MEMBER(e,t),"get","json")}async getGuildMembers(e,t){return this.requestHandler.request(u.GUILD_MEMBERS(e),"get","json",t)}async searchGuildMembers(e,t){if(t.limit!==void 0&&(t.limit<b.SEARCH_MEMBERS_MIN_RESULTS||t.limit>b.SEARCH_MEMBERS_MAX_RESULTS))throw new RangeError(`Limit for searching guild members has to be between ${b.SEARCH_MEMBERS_MIN_RESULTS} and ${b.SEARCH_MEMBERS_MAX_RESULTS}`);return this.requestHandler.request(u.GUILD_MEMBERS_SEARCH(e),"get","json",t)}async addGuildMember(e,t,s){return this.requestHandler.request(u.GUILD_MEMBER(e,t),"put","json",s)}async updateGuildMember(e,t,s){return this.requestHandler.request(u.GUILD_MEMBER(e,t),"patch","json",s)}async updateSelf(e,t){return this.requestHandler.request(u.GUILD_MEMBER(e,"@me"),"patch","json",t)}async addGuildMemberRole(e,t,s,r){return this.requestHandler.request(u.GUILD_MEMBER_ROLE(e,t,s),"put","json",r?{reason:r}:void 0)}async removeGuildMemberRole(e,t,s,r){return this.requestHandler.request(u.GUILD_MEMBER_ROLE(e,t,s),"delete","json",r?{reason:r}:void 0)}async removeGuildMember(e,t,s){return this.requestHandler.request(u.GUILD_MEMBER(e,t),"delete","json",s?{reason:s}:void 0)}async getGuildBans(e,t){return this.requestHandler.request(u.GUILD_BANS(e),"get","json",t)}async getGuildBan(e,t){return this.requestHandler.request(u.GUILD_BAN(e,t),"get","json")}async createGuildBan(e,t,s){return this.requestHandler.request(u.GUILD_BAN(e,t),"put","json",s)}async removeGuildBan(e,t,s){return this.requestHandler.request(u.GUILD_BAN(e,t),"delete","json",s?{reason:s}:void 0)}async getGuildRoles(e){return this.requestHandler.request(u.GUILD_ROLES(e),"get","json")}async createGuildRole(e,t){return this.requestHandler.request(u.GUILD_ROLES(e),"post","json",t)}async updateGuildRolePositions(e,t,s){return this.requestHandler.request(u.GUILD_ROLES(e),"patch","json",t,s?{"X-Audit-Log-Reason":s}:void 0)}async updateGuildRole(e,t,s){return this.requestHandler.request(u.GUILD_ROLE(e,t),"patch","json",s)}async removeGuildRole(e,t,s){return this.requestHandler.request(u.GUILD_ROLE(e,t),"delete","json",s?{reason:s}:void 0)}async getGuildPruneCount(e,t){return this.requestHandler.request(u.GUILD_PRUNE(e),"get","json",t)}async startGuildPrune(e,t){return this.requestHandler.request(u.GUILD_PRUNE(e),"post","json",t)}async getGuildVoiceRegions(e){return this.requestHandler.request(u.GUILD_VOICE_REGIONS(e),"get","json")}async getGuildInvites(e){return this.requestHandler.request(u.GUILD_INVITES(e),"get","json")}async getGuildIntegrations(e){return this.requestHandler.request(u.GUILD_INTEGRATIONS(e),"get","json")}async removeGuildIntegration(e,t,s){return this.requestHandler.request(u.GUILD_INTEGRATION(e,t),"delete","json",s?{reason:s}:void 0)}async getGuildWidgetSettings(e){return this.requestHandler.request(u.GUILD_WIDGET_SETTINGS(e),"get","json")}async updateGuildWidgetSettings(e,t){return this.requestHandler.request(u.GUILD_WIDGET_SETTINGS(e),"patch","json",t)}async getGuildWidget(e){return this.requestHandler.request(u.GUILD_WIDGET(e),"get","json")}async getGuildVanityURL(e){return this.requestHandler.request(u.GUILD_VANITY(e),"get","json")}async getGuildWelcomeScreen(e){return this.requestHandler.request(u.GUILD_WELCOME_SCREEN(e),"get","json")}async editGuildWelcomeScreen(e,t){return this.requestHandler.request(u.GUILD_WELCOME_SCREEN(e),"patch","json",t)}updateCurrentUserVoiceState(e,t){return this.requestHandler.request(u.GUILD_VOICE_STATE_USER(e,"@me"),"patch","json",t)}updateUserVoiceState(e,t,s){return this.requestHandler.request(u.GUILD_VOICE_STATE_USER(e,t),"patch","json",s)}};ge.exports=J});var V=d((ss,me)=>{var G=E(),_=T(),x=class{constructor(e){this.requestHandler=e}async listGuildScheduledEvents(e,t){return this.requestHandler.request(G.GUILD_SCHEDULED_EVENTS(e),"get","json",t!==void 0?{with_user_count:t}:void 0)}async createGuildScheduledEvent(e,t){return this.requestHandler.request(G.GUILD_SCHEDULED_EVENTS(e),"post","json",t)}async getGuildScheduledEvent(e,t,s){return this.requestHandler.request(G.GUILD_SCHEDULED_EVENT(e,t),"get","json",s!==void 0?{with_user_count:s}:void 0)}async editGuildScheduledEvent(e,t,s){return this.requestHandler.request(G.GUILD_SCHEDULED_EVENT(e,t),"patch","json",s)}async deleteGuildScheduledEvent(e,t){return this.requestHandler.request(G.GUILD_SCHEDULED_EVENT(e,t),"delete","json")}async getGuildScheduledEventUsers(e,t,s){if((s==null?void 0:s.limit)!==void 0&&(s.limit<_.GET_GUILD_SCHEDULED_EVENT_USERS_MIN_RESULTS||s.limit>_.GET_GUILD_SCHEDULED_EVENT_USERS_MAX_RESULTS))throw new RangeError(`The maximum amount of users that may be requested has to be between ${_.GET_GUILD_SCHEDULED_EVENT_USERS_MIN_RESULTS} and ${_.GET_GUILD_SCHEDULED_EVENT_USERS_MAX_RESULTS}`);return this.requestHandler.request(G.GUILD_SCHEDULED_EVENT_USERS(e,t),"get","json",s)}};me.exports=x});var F=d((ns,Ge)=>{var g=E(),Q=class{constructor(e){this.requestHandler=e}getGuildTemplate(e){return this.requestHandler.request(g.TEMPLATE(e),"get","json")}createGuildFromGuildTemplate(e,t){return this.requestHandler.request(g.TEMPLATE(e),"post","json",t)}getGuildTemplates(e){return this.requestHandler.request(g.GUILD_TEMPLATES(e),"get","json")}createGuildTemplate(e,t){return this.requestHandler.request(g.GUILD_TEMPLATES(e),"post","json",t)}syncGuildTemplate(e,t){return this.requestHandler.request(g.GUILD_TEMPLATE(e,t),"put","json")}modifyGuildTemplate(e,t,s){return this.requestHandler.request(g.GUILD_TEMPLATE(e,t),"patch","json",s)}deleteGuildTemplate(e,t){return this.requestHandler.request(g.GUILD_TEMPLATE(e,t),"delete","json")}};Ge.exports=Q});var Y=d((rs,ye)=>{var S=E(),ze=T(),X=class{constructor(e,t){this.requestHandler=e,this.webhooks=t}getApplicationCommands(e,t){return this.requestHandler.request(S.APPLICATION_COMMANDS(e),"get","json",t?{with_localizations:t}:void 0)}createApplicationCommand(e,t){return this.requestHandler.request(S.APPLICATION_COMMANDS(e),"post","json",t)}getApplicationCommand(e,t){return this.requestHandler.request(S.APPLICATION_COMMAND(e,t),"get","json")}editApplicationCommand(e,t,s){return this.requestHandler.request(S.APPLICATION_COMMAND(e,t),"patch","json",s)}deleteApplicationCommand(e,t){return this.requestHandler.request(S.APPLICATION_COMMAND(e,t),"delete","json")}bulkOverwriteApplicationCommands(e,t){return this.requestHandler.request(S.APPLICATION_COMMANDS(e),"put","json",t)}getGuildApplicationCommands(e,t,s){return this.requestHandler.request(S.APPLICATION_GUILD_COMMANDS(e,t),"get","json",s?{with_localizations:s}:void 0)}createGuildApplicationCommand(e,t,s){return this.requestHandler.request(S.APPLICATION_GUILD_COMMANDS(e,t),"post","json",s)}getGuildApplicationCommand(e,t,s){return this.requestHandler.request(S.APPLICATION_GUILD_COMMAND(e,t,s),"get","json")}editGuildApplicationCommand(e,t,s,r){return this.requestHandler.request(S.APPLICATION_GUILD_COMMAND(e,t,s),"patch","json",r)}deleteGuildApplicationCommand(e,t,s){return this.requestHandler.request(S.APPLICATION_GUILD_COMMAND(e,t,s),"delete","json")}bulkOverwriteGuildApplicationCommands(e,t,s){return this.requestHandler.request(S.APPLICATION_GUILD_COMMANDS(e,t),"put","json",s)}getGuildApplicationCommandPermissions(e,t,s){return s?this.requestHandler.request(S.APPLICATION_GUILD_COMMAND_PERMISSIONS(e,t,s),"get","json"):this.requestHandler.request(S.APPLICATION_GUILD_COMMANDS_PERMISSIONS(e,t),"get","json")}editGuildApplicationCommandPermissions(e,t,s,r){let o={permissions:r};return this.requestHandler.request(S.APPLICATION_GUILD_COMMAND_PERMISSIONS(e,t,s),"put","json",o)}createInteractionResponse(e,t,s){return s.files?this.requestHandler.request(S.INTERACTION_CALLBACK(e,t),"post","multipart",ze.standardMultipartHandler(s)):this.requestHandler.request(S.INTERACTION_CALLBACK(e,t),"post","json",s)}getOriginalInteractionResponse(e,t){return this.webhooks.getWebhookMessage(e,t,"@original")}editOriginalInteractionResponse(e,t,s){return this.webhooks.editWebhookMessage(e,t,"@original",s)}deleteOriginalInteractionResponse(e,t){return this.webhooks.deleteWebhookMessage(e,t,"@original")}createFollowupMessage(e,t,s){return this.webhooks.executeWebhook(e,t,s)}getFollowupMessage(e,t,s){return this.webhooks.getWebhookMessage(e,t,s)}editFollowupMessage(e,t,s,r){return this.webhooks.editWebhookMessage(e,t,s,r)}deleteFollowupMessage(e,t,s){return this.webhooks.deleteWebhookMessage(e,t,s)}};ye.exports=X});var Z=d((is,_e)=>{var be=E(),z=class{constructor(e){this.requestHandler=e}async getInvite(e,t){return this.requestHandler.request(be.INVITES(e),"get","json",t)}async deleteInvite(e){return this.requestHandler.request(be.INVITES(e),"delete","json")}};_e.exports=z});var te=d((os,Ce)=>{var C=E(),ee=class{constructor(e){this.requestHandler=e}async createStageInstance(e){return this.requestHandler.request(C.STAGE_INSTANCES,"post","json",e)}async getStageInstance(e){return this.requestHandler.request(C.STAGE_INSTANCE_CHANNEL(e),"get","json")}async editStageInstance(e,t){return this.requestHandler.request(C.STAGE_INSTANCE_CHANNEL(e),"patch","json",t)}async deleteStageInstance(e,t){return this.requestHandler.request(C.STAGE_INSTANCE_CHANNEL(e),"delete","json",t?{reason:t}:void 0)}};Ce.exports=ee});var ne=d((us,Ne)=>{var A=E(),se=class{constructor(e){this.requestHandler=e}async getSelf(){return this.requestHandler.request(A.USER("@me"),"get","json")}async getUser(e){return this.requestHandler.request(A.USER(e),"get","json")}async updateSelf(e){return this.requestHandler.request(A.USER("@me"),"patch","json",e)}async getGuilds(e){return this.requestHandler.request(A.USER_GUILDS("@me"),"get","json",e)}async leaveGuild(e){return this.requestHandler.request(A.USER_GUILD("@me",e),"delete","json")}async createDirectMessageChannel(e){return this.requestHandler.request(A.USER_CHANNELS("@me"),"post","json",{recipient_id:e})}async createGroupDirectMessageChannel(e){return this.requestHandler.request(A.USER_CHANNELS("@me"),"post","json",e)}async getConnections(){return this.requestHandler.request(A.USER_CONNECTIONS("@me"),"get","json")}async getApplicationRoleConnection(e){return this.requestHandler.request(A.USER_APPLICATION_ROLE_CONNECTION("@me",e),"get","json")}async updateApplicationRoleConnection(e,t){return this.requestHandler.request(A.USER_APPLICATION_ROLE_CONNECTION("@me",e),"put","json",t)}};Ne.exports=se});var ie=d((ls,He)=>{var Ze=E(),re=class{constructor(e){this.requestHandler=e}async getVoiceRegions(){return this.requestHandler.request(Ze.VOICE_REGIONS,"get","json")}};He.exports=re});var ue=d((as,Me)=>{var c=E(),Le=T(),et=/@([^<>@ ]*)/gsmu,oe=class{constructor(e,t){this.requestHandler=e,this.disableEveryone=t}async createWebhook(e,t){return this.requestHandler.request(c.CHANNEL_WEBHOOKS(e),"post","json",t)}async getChannelWebhooks(e){return this.requestHandler.request(c.CHANNEL_WEBHOOKS(e),"get","json")}async getGuildWebhooks(e){return this.requestHandler.request(c.GUILD_WEBHOOKS(e),"get","json")}async getWebhook(e,t){return t?this.requestHandler.request(c.WEBHOOK_TOKEN(e,t),"get","json"):this.requestHandler.request(c.WEBHOOK(e),"get","json")}async updateWebhook(e,t,s){return s?this.requestHandler.request(c.WEBHOOK_TOKEN(e,s),"patch","json",t):this.requestHandler.request(c.WEBHOOK(e),"patch","json",t)}async deleteWebhook(e,t){return t?this.requestHandler.request(c.WEBHOOK_TOKEN(e,t),"delete","json"):this.requestHandler.request(c.WEBHOOK(e),"delete","json")}async executeWebhook(e,t,s,r={disableEveryone:this.disableEveryone}){var R;if(typeof s!="string"&&!(s!=null&&s.content)&&!(s!=null&&s.embeds)&&!(s!=null&&s.components)&&!(s!=null&&s.files))throw new Error("Missing content or embeds or components or files");typeof s=="string"&&(s={content:s}),s.content&&((R=r.disableEveryone)!=null?R:this.disableEveryone)&&(s.content=s.content.replace(et,st)),delete r.disableEveryone;let o=new URLSearchParams(r);return s.files?this.requestHandler.request(`${c.WEBHOOK_TOKEN(e,t)}?${o.toString()}`,"post","multipart",Le.standardMultipartHandler(s)):this.requestHandler.request(`${c.WEBHOOK_TOKEN(e,t)}?${o.toString()}`,"post","json",s)}async executeWebhookSlack(e,t,s,r={}){let o=new URLSearchParams(r);return this.requestHandler.request(`${c.WEBHOOK_TOKEN_SLACK(e,t)}?${o.toString()}`,"post","json",s)}async executeWebhookGitHub(e,t,s,r={}){let o=new URLSearchParams(r);return this.requestHandler.request(`${c.WEBHOOK_TOKEN_GITHUB(e,t)}?${o.toString()}`,"post","json",s)}async getWebhookMessage(e,t,s,r){return this.requestHandler.request(c.WEBHOOK_TOKEN_MESSAGE(e,t,s),"get","json",r?{thread_id:r}:void 0)}async editWebhookMessage(e,t,s,r){let o;return r.thread_id&&(o=r.thread_id),delete r.thread_id,r.files?this.requestHandler.request(`${c.WEBHOOK_TOKEN_MESSAGE(e,t,s)}${o?`?thread_id=${o}`:""}`,"patch","multipart",Le.standardMultipartHandler(r)):this.requestHandler.request(`${c.WEBHOOK_TOKEN_MESSAGE(e,t,s)}${o?`?thread_id=${o}`:""}`,"patch","json",r)}async deleteWebhookMessage(e,t,s,r){return this.requestHandler.request(`${c.WEBHOOK_TOKEN_MESSAGE(e,t,s)}${r?`?thread_id=${r}`:""}`,"delete","json")}},tt=/^[&!]?\d+$/;function st(n,e){return tt.test(e)?`@${e}`:`@\u200B${e}`}Me.exports=oe});var qe=d((ds,nt)=>{nt.exports={name:"snowtransfer",version:"0.7.3",description:"Minimalistic Rest client for the Discord Api",main:"./dist/index.js",types:"./dist/index.d.ts",engines:{node:">=12.0.0"},keywords:["discord","api","rest","http","microservice","discord bot","discord bot microservice","microservice bot"],scripts:{"build:src":"tsup src/index.ts --dts --sourcemap --format cjs --target node12 --minify","build:docs":"typedoc --name SnowTransfer --excludeExternals --sort static-first --sort alphabetical"},repository:{type:"git",url:"git+https://github.com/DasWolke/SnowTransfer.git"},bugs:"https://github.com/DasWolke/SnowTransfer/issues",author:"wolke <wolke@weeb.sh>",license:"MIT",dependencies:{centra:"^2.6.0","discord-api-types":"^0.37.47","form-data":"^4.0.0"},devDependencies:{"@types/centra":"^2.2.0","@types/node":"^20.3.3","@typescript-eslint/eslint-plugin":"^5.60.1","@typescript-eslint/parser":"^5.60.1",eslint:"^8.44.0",tsup:"^7.1.0",typedoc:"^0.24.8","typedoc-plugin-mdn-links":"^3.0.3",typescript:"^5.1.6"},files:["dist","README.md","LICENSE.md"]}});var Oe,rt,Es,De,le,it,ot,ut,lt,at,dt,Et,Rt,St,ct,N,H,ae,L,Ue=je(()=>{Oe=require("events"),rt=require("crypto"),Es=require("form-data"),De=require("centra"),le=E(),{version:it}=qe(),ot=T(),ut=/(?:\/bans)|(?:\/prune)/,lt=/application\/json/,at=/\/([a-z-]+)\/(?:\d{17,19})/g,dt=/\/reactions\/[^/]+/g,Et=/\/reactions\/:id\/[^/]+/g,Rt=/^\/webhooks\/(\d+)\/[A-Za-z0-9-_]{64,}/,St=/\/messages\/:id$/,ct=/\/guilds\/\d+\/channels$/,N=class extends Error{constructor(t,s,r,o){var R;super();this.name="DiscordAPIError",this.message=s.message||String(s),this.method=r,this.path=t,this.code=(R=s.code)!=null?R:4e3,this.httpStatus=o}},H=class{constructor(){this.buckets={};this._global=!1;this.globalReset=0;this.globalResetTimeout=null}get global(){return this._global}set global(e){if(e&&this.globalReset!==0){this.globalResetTimeout&&clearTimeout(this.globalResetTimeout);let t=this;this.globalResetTimeout=setTimeout(()=>{t.global=!1},this.globalReset).unref()}else{this.globalResetTimeout&&clearTimeout(this.globalResetTimeout),this.globalResetTimeout=null,this.globalReset=0;for(let t of Object.values(this.buckets))t.checkQueue()}this._global=e}routify(e,t){let s=e.replace(at,function(r,o){return o==="channels"||o==="guilds"||o==="webhooks"?r:`/${o}/:id`}).replace(dt,"/reactions/:id").replace(Et,"/reactions/:id/:userID").replace(Rt,"/webhooks/$1/:token");if(t.toUpperCase()==="DELETE"&&St.test(s)?s=t+s:t.toUpperCase()==="GET"&&ct.test(s)&&(s="/guilds/:id/channels"),t==="PUT"||t==="DELETE"){let r=s.indexOf("/reactions");r!==-1&&(s="MODIFY"+s.slice(0,r+10))}return s}queue(e,t,s){let r=this.routify(t,s);this.buckets[r]||(this.buckets[r]=new ae(this,r)),this.buckets[r].queue(e)}},ae=class{constructor(e,t){this.fnQueue=[];this.limit=5;this.remaining=1;this.reset=5e3;this.resetTimeout=null;this.ratelimiter=e,this.routeKey=t}queue(e){return new Promise(t=>{let s=()=>(this.remaining--,this.resetTimeout||(this.resetTimeout=setTimeout(()=>this.resetRemaining(),this.reset)),this.remaining!==0&&this.checkQueue(),t(e(this)));this.fnQueue.push({fn:e,callback:s}),this.checkQueue()})}checkQueue(){this.ratelimiter.global||this.fnQueue.length&&this.remaining!==0&&this.fnQueue.splice(0,1)[0].callback()}resetRemaining(){this.remaining=this.limit,this.resetTimeout&&(clearTimeout(this.resetTimeout),this.resetTimeout=null),this.fnQueue.length?this.checkQueue():delete this.ratelimiter.buckets[this.routeKey]}dropQueue(){this.fnQueue.length=0}},L=class extends Oe.EventEmitter{constructor(t,s){super();this.ratelimiter=t,this.options={baseHost:le.BASE_HOST,baseURL:le.BASE_URL,headers:{"User-Agent":`Discordbot (https://github.com/DasWolke/SnowTransfer, ${it}) Node.js/${process.version}`}},s.token&&(this.options.headers.Authorization=s.token),this.options.baseHost=s.baseHost,this.apiURL=this.options.baseHost+le.BASE_URL,this.latency=500}request(t,s,r="json",o,R){return new Promise(async(h,m)=>{this.ratelimiter.queue(async M=>{let q=rt.randomBytes(20).toString("hex");try{this.emit("request",q,{endpoint:t,method:s,dataType:r,data:o!=null?o:{}});let a;if(r=="json")a=await this._request(t,s,o,s==="get"||ut.test(t),R);else if(r=="multipart"&&o)a=await this._multiPartRequest(t,s,o,R);else throw new Error("Forbidden dataType. Use json or multipart or ensure multipart has FormData");if(a.statusCode&&!ot.OK_STATUS_CODES.includes(a.statusCode)&&a.statusCode!==429)throw new N(t,a.headers["content-type"]&<.test(a.headers["content-type"])?{message:JSON.stringify(await a.json())}:{message:String(a.body)},s,a.statusCode);if(this._applyRatelimitHeaders(M,a.headers),a.statusCode===429){if(!this.ratelimiter.global){let I=JSON.parse(String(a.body));I.reset_after!==void 0?this.ratelimiter.globalReset=I.reset_after*1e3:this.ratelimiter.globalReset=1e3,I.global!==void 0&&(this.ratelimiter.global=I.global)}throw this.emit("rateLimit",{timeout:M.reset,limit:M.limit,method:s,path:t,route:this.ratelimiter.routify(t,s)}),new N(t,{message:"You're being ratelimited",code:429},s,a.statusCode)}if(this.emit("done",q,a),a.body){let I;try{I=JSON.parse(a.body.toString())}catch{h(void 0)}return h(I)}else return h(void 0)}catch(a){return this.emit("requestError",q,a),m(a)}},t,s)})}_applyRatelimitHeaders(t,s){s["x-ratelimit-remaining"]&&(t.remaining=parseInt(s["x-ratelimit-remaining"])),s["x-ratelimit-limit"]&&(t.limit=parseInt(s["x-ratelimit-limit"])),s["x-ratelimit-reset"]&&(t.reset=parseInt(s["x-ratelimit-reset"])-Date.now())}async _request(t,s,r,o=!1,R){let h={...this.options.headers};R&&Object.assign(h,R),typeof r!="string"&&(r!=null&&r.reason)&&(h["X-Audit-Log-Reason"]=encodeURIComponent(r.reason),delete r.reason);let m=De(this.apiURL,s).path(t).header({...this.options.headers,...h});return o?m.query(r).send():(r&&typeof r=="object"?m.body(r,"json"):r&&m.body(r),m.send())}async _multiPartRequest(t,s,r,o){let R={...this.options.headers,...r.getHeaders()};return o&&Object.assign(R,o),De(this.apiURL,s).path(t).header(R).body(r.getBuffer()).timeout(15e3).send()}}});var Be=d((cs,ke)=>{Ue();var Pt=U(),pt=k(),At=W(),ht=$(),Tt=w(),It=K(),gt=V(),mt=F(),Gt=Y(),yt=Z(),bt=te(),_t=ne(),Ct=ie(),Nt=ue(),fe=E(),de=class{constructor(e,t){if(typeof e=="string"&&e==="")throw new Error("Missing token");e&&!e.startsWith("Bot")&&!e.startsWith("Bearer")&&(e=`Bot ${e}`),this.options={baseHost:fe.BASE_HOST,disableEveryone:!1},this.token=e,Object.assign(this.options,t),this.ratelimiter=new H,this.requestHandler=new L(this.ratelimiter,{token:this.token,baseHost:this.options.baseHost||fe.BASE_HOST}),this.channel=new ht(this.requestHandler,this.options.disableEveryone),this.user=new _t(this.requestHandler),this.guildAssets=new Tt(this.requestHandler),this.webhook=new Nt(this.requestHandler,this.options.disableEveryone),this.guild=new It(this.requestHandler),this.guildScheduledEvent=new gt(this.requestHandler),this.guildTemplate=new mt(this.requestHandler),this.interaction=new Gt(this.requestHandler,this.webhook),this.invite=new yt(this.requestHandler),this.voice=new Ct(this.requestHandler),this.bot=new At(this.requestHandler),this.auditLog=new Pt(this.requestHandler),this.stageInstance=new bt(this.requestHandler),this.autoMod=new pt(this.requestHandler)}};ke.exports=de});var xt={};we(xt,{AuditLogMethods:()=>Ht,AutoModerationMethods:()=>Lt,BotMethods:()=>Mt,ChannelMethods:()=>qt,Constants:()=>wt,Endpoints:()=>Jt,GuildAssetsMethods:()=>Dt,GuildMethods:()=>Ot,GuildScheduledEventMethods:()=>Ut,GuildTemplateMethods:()=>ft,InteractionMethods:()=>kt,InviteMethods:()=>Bt,SnowTransfer:()=>Kt,StageInstanceMethods:()=>Wt,UserMethods:()=>vt,VoiceMethods:()=>$t,WebhookMethods:()=>jt});module.exports=Ke(xt);var Ht=U(),Lt=k(),Mt=W(),qt=$(),Dt=w(),Ot=K(),Ut=V(),ft=F(),kt=Y(),Bt=Z(),Wt=te(),vt=ne(),$t=ie(),jt=ue(),wt=T(),Jt=E(),Kt=Be();0&&(module.exports={AuditLogMethods,AutoModerationMethods,BotMethods,ChannelMethods,Constants,Endpoints,GuildAssetsMethods,GuildMethods,GuildScheduledEventMethods,GuildTemplateMethods,InteractionMethods,InviteMethods,SnowTransfer,StageInstanceMethods,UserMethods,VoiceMethods,WebhookMethods}); | ||
var D=Object.defineProperty;var $e=Object.getOwnPropertyDescriptor;var je=Object.getOwnPropertyNames;var we=Object.prototype.hasOwnProperty;var Je=(s,e)=>()=>(s&&(e=s(s=0)),e);var d=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports),Ke=(s,e)=>{for(var t in e)D(s,t,{get:e[t],enumerable:!0})},xe=(s,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of je(e))!we.call(s,r)&&r!==t&&D(s,r,{get:()=>e[r],enumerable:!(n=$e(e,r))||n.enumerable});return s};var Ve=s=>xe(D({},"__esModule",{value:!0}),s);var T=d((Ft,de)=>{var Qe=require("form-data"),Fe={REST_API_VERSION:10,GET_CHANNEL_MESSAGES_MIN_RESULTS:1,GET_CHANNEL_MESSAGES_MAX_RESULTS:100,GET_GUILD_SCHEDULED_EVENT_USERS_MIN_RESULTS:1,GET_GUILD_SCHEDULED_EVENT_USERS_MAX_RESULTS:100,SEARCH_MEMBERS_MIN_RESULTS:1,SEARCH_MEMBERS_MAX_RESULTS:1e3,BULK_DELETE_MESSAGES_MIN:2,BULK_DELETE_MESSAGES_MAX:100,OK_STATUS_CODES:[200,201,204,304],standardMultipartHandler(s){let e=new Qe;if(s.files&&Array.isArray(s.files)&&s.files.every(t=>!!t.name&&!!t.file)){let t=0;for(let n of s.files)e.append(`files[${t}]`,n.file,{filename:n.name}),delete n.file,t++}return s.data&&delete s.files,e.append("payload_json",JSON.stringify(s)),e}};de.exports=Fe});var R=d((Xt,Re)=>{"use strict";var Xe=T(),i={BASE_URL:"/api/v"+Xe.REST_API_VERSION,BASE_HOST:"https://discord.com",CDN_URL:"https://cdn.discordapp.com",APPLICATION_COMMAND:(s,e)=>`${i.APPLICATION_COMMANDS(s)}/${e}`,APPLICATION_COMMANDS:s=>`/applications/${s}/commands`,APPLICATION_GUILD_COMMANDS_PERMISSIONS:(s,e)=>`${i.APPLICATION_GUILD_COMMANDS(s,e)}/permissions`,APPLICATION_GUILD_COMMAND_PERMISSIONS:(s,e,t)=>`${i.APPLICATION_GUILD_COMMAND(s,e,t)}/permissions`,APPLICATION_GUILD_COMMAND:(s,e,t)=>`${i.APPLICATION_GUILD_COMMANDS(s,e)}/${t}`,APPLICATION_GUILD_COMMANDS:(s,e)=>`/applications/${s}/guilds/${e}/commands`,CHANNEL:s=>`${i.CHANNELS}/${s}`,CHANNEL_BULK_DELETE:s=>`${i.CHANNEL_MESSAGES(s)}/bulk-delete`,CHANNEL_FOLLOWERS:s=>`${i.CHANNEL(s)}/followers`,CHANNEL_INVITES:s=>`${i.CHANNEL(s)}/invites`,CHANNEL_MESSAGE:(s,e)=>`${i.CHANNEL_MESSAGES(s)}/${e}`,CHANNEL_MESSAGE_CROSSPOST:(s,e)=>`${i.CHANNEL_MESSAGE(s,e)}/crosspost`,CHANNEL_MESSAGE_REACTION:(s,e,t)=>`${i.CHANNEL_MESSAGE_REACTIONS(s,e)}/${t}`,CHANNEL_MESSAGE_REACTION_USER:(s,e,t,n)=>`${i.CHANNEL_MESSAGE_REACTION(s,e,t)}/${n}`,CHANNEL_MESSAGE_REACTIONS:(s,e)=>`${i.CHANNEL_MESSAGE(s,e)}/reactions`,CHANNEL_MESSAGE_THREADS:(s,e)=>`${i.CHANNEL_MESSAGE(s,e)}/threads`,CHANNEL_MESSAGES:s=>`${i.CHANNEL(s)}/messages`,CHANNEL_PERMISSION:(s,e)=>`${i.CHANNEL_PERMISSIONS(s)}/${e}`,CHANNEL_PERMISSIONS:s=>`${i.CHANNEL(s)}/permissions`,CHANNEL_PIN:(s,e)=>`${i.CHANNEL_PINS(s)}/${e}`,CHANNEL_PINS:s=>`${i.CHANNEL(s)}/pins`,CHANNEL_RECIPIENT:(s,e)=>`${i.CHANNEL(s)}/recipients/${e}`,CHANNEL_THREADS:s=>`${i.CHANNEL(s)}/threads`,CHANNEL_THREAD_MEMBER:(s,e)=>`${i.CHANNEL_THREAD_MEMBERS(s)}/${e}`,CHANNEL_THREAD_MEMBERS:s=>`${i.CHANNEL(s)}/thread-members`,CHANNEL_THREADS_ARCHIVED_PRIVATE:s=>`${i.CHANNEL_THREADS(s)}/archived/private`,CHANNEL_THREADS_ARCHIVED_PRIVATE_USER:s=>`${i.CHANNEL(s)}/users/@me/threads/archived/private`,CHANNEL_THREADS_ARCHIVED_PUBLIC:s=>`${i.CHANNEL_THREADS(s)}/archived/public`,CHANNEL_TYPING:s=>`${i.CHANNEL(s)}/typing`,CHANNEL_WEBHOOKS:s=>`${i.CHANNEL(s)}/webhooks`,CHANNELS:"/channels",GATEWAY:"/gateway",GATEWAY_BOT:"/gateway/bot",GUILD:s=>`${i.GUILDS}/${s}`,GUILD_AUDIT_LOGS:s=>`${i.GUILD(s)}/audit-logs`,GUILD_AUTO_MOD_RULE:(s,e)=>`${i.GUILD_AUTO_MOD_RULES(s)}/${e}`,GUILD_AUTO_MOD_RULES:s=>`${i.GUILD(s)}/auto-moderation/rules`,GUILD_BAN:(s,e)=>`${i.GUILD_BANS(s)}/${e}`,GUILD_BANS:s=>`${i.GUILD(s)}/bans`,GUILD_CHANNELS:s=>`${i.GUILD(s)}/channels`,GUILD_EMOJI:(s,e)=>`${i.GUILD_EMOJIS(s)}/${e}`,GUILD_EMOJIS:s=>`${i.GUILD(s)}/emojis`,GUILD_INVITES:s=>`${i.GUILD(s)}/invites`,GUILD_INTEGRATION:(s,e)=>`${i.GUILD_INTEGRATIONS(s)}/${e}`,GUILD_INTEGRATIONS:s=>`${i.GUILD(s)}/integrations`,GUILD_MEMBER:(s,e)=>`${i.GUILD_MEMBERS(s)}/${e}`,GUILD_MEMBER_ROLE:(s,e,t)=>`${i.GUILD_MEMBER(s,e)}/roles/${t}`,GUILD_MEMBERS:s=>`${i.GUILD(s)}/members`,GUILD_MEMBERS_SEARCH:s=>`${i.GUILD_MEMBERS(s)}/search`,GUILD_PREVIEW:s=>`${i.GUILD(s)}/preview`,GUILD_PRUNE:s=>`${i.GUILD(s)}/prune`,GUILD_ROLE:(s,e)=>`${i.GUILD_ROLES(s)}/${e}`,GUILD_ROLES:s=>`${i.GUILD(s)}/roles`,GUILD_SCHEDULED_EVENTS:s=>`${i.GUILD(s)}/scheduled-events`,GUILD_SCHEDULED_EVENT:(s,e)=>`${i.GUILD_SCHEDULED_EVENTS(s)}/${e}`,GUILD_SCHEDULED_EVENT_USERS:(s,e)=>`${i.GUILD_SCHEDULED_EVENT(s,e)}/users`,GUILD_STICKER:(s,e)=>`${i.GUILD_STICKERS(s)}/${e}`,GUILD_STICKERS:s=>`${i.GUILD(s)}/stickers`,GUILD_TEMPLATE:(s,e)=>`${i.GUILD_TEMPLATES(s)}/${e}`,GUILD_THREADS_ACTIVE:s=>`${i.GUILD(s)}/threads/active`,GUILD_TEMPLATES:s=>`${i.GUILD(s)}/templates`,GUILD_VANITY:s=>`${i.GUILD(s)}/vanity-url`,GUILD_VOICE_REGIONS:s=>`${i.GUILD(s)}/regions`,GUILD_VOICE_STATE_USER:(s,e)=>`${i.GUILD(s)}/voice-states/${e}`,GUILD_WEBHOOKS:s=>`${i.GUILD(s)}/webhooks`,GUILD_WELCOME_SCREEN:s=>`${i.GUILD(s)}/welcome-screen`,GUILD_WIDGET:s=>`${i.GUILD(s)}/widget.json`,GUILD_WIDGET_SETTINGS:s=>`${i.GUILD(s)}/widget`,GUILDS:"/guilds",INTERACTION_CALLBACK:(s,e)=>`/interactions/${s}/${e}/callback`,INVITES:s=>`/invites/${s}`,OAUTH2_APPLICATION:s=>`/oauth2/applications/${s}`,STAGE_INSTANCE_CHANNEL:s=>`${i.STAGE_INSTANCES}/${s}`,STAGE_INSTANCES:"/stage-instances",STICKER:s=>`/stickers/${s}`,TEMPLATE:s=>`/guilds/templates/${s}`,USER:s=>`${i.USERS}/${s}`,USER_APPLICATION_ROLE_CONNECTION:(s,e)=>`${i.USER(s)}/applications/${e}/role-connection`,USER_CHANNELS:s=>`${i.USER(s)}/channels`,USER_CONNECTIONS:s=>`${i.USER(s)}/connections`,USER_GUILD:(s,e)=>`${i.USER_GUILDS(s)}/${e}`,USER_GUILDS:s=>`${i.USER(s)}/guilds`,USERS:"/users",VOICE_REGIONS:"/voice/regions",WEBHOOK:s=>`/webhooks/${s}`,WEBHOOK_TOKEN:(s,e)=>`${i.WEBHOOK(s)}/${e}`,WEBHOOK_TOKEN_GITHUB:(s,e)=>`${i.WEBHOOK_TOKEN(s,e)}/github`,WEBHOOK_TOKEN_MESSAGE:(s,e,t)=>`/webhooks/${s}/${e}/messages/${t}`,WEBHOOK_TOKEN_SLACK:(s,e)=>`${i.WEBHOOK_TOKEN(s,e)}/slack`};Re.exports=i});var U=d((Yt,ce)=>{var Ye=R(),O=class{constructor(e){this.requestHandler=e}async getAuditLog(e,t){return this.requestHandler.request(Ye.GUILD_AUDIT_LOGS(e),t,"get","json")}};ce.exports=O});var k=d((zt,Se)=>{var y=R(),f=class{constructor(e){this.requestHandler=e}async getAutoModerationRules(e){return this.requestHandler.request(y.GUILD_AUTO_MOD_RULES(e),{},"get","json")}async getAutoModerationRule(e,t){return this.requestHandler.request(y.GUILD_AUTO_MOD_RULE(e,t),{},"get","json")}async createAutoModerationRule(e,t){return this.requestHandler.request(y.GUILD_AUTO_MOD_RULES(e),{},"post","json",t)}async editAutoModerationRule(e,t,n){return this.requestHandler.request(y.GUILD_AUTO_MOD_RULE(e,t),{},"patch","json",n)}async deleteAutoModerationRule(e,t,n){return this.requestHandler.request(y.GUILD_AUTO_MOD_RULE(e,t),{},"delete","json",{reason:n})}};Se.exports=f});var W=d((Zt,pe)=>{var Pe=R(),B=class{constructor(e){this.requestHandler=e}getGateway(){return this.requestHandler.request(Pe.GATEWAY,{},"get","json")}getGatewayBot(){return this.requestHandler.request(Pe.GATEWAY_BOT,{},"get","json")}};pe.exports=B});var $=d((es,Te)=>{var u=R(),A=T(),Ae=/@([^<>@ ]*)/gsmu,v=class{constructor(e,t){this.requestHandler=e,this.disableEveryone=t}async getChannel(e){return this.requestHandler.request(u.CHANNEL(e),{},"get","json")}async updateChannel(e,t){return this.requestHandler.request(u.CHANNEL(e),{},"patch","json",t)}async deleteChannel(e,t){return this.requestHandler.request(u.CHANNEL(e),{},"delete","json",{reason:t})}async getChannelMessages(e,t={limit:50}){if(t.around?(delete t.before,delete t.after):t.before?(delete t.around,delete t.after):t.after&&(delete t.before,delete t.around),t.limit!==void 0&&(t.limit<A.GET_CHANNEL_MESSAGES_MIN_RESULTS||t.limit>A.GET_CHANNEL_MESSAGES_MAX_RESULTS))throw new RangeError(`Amount of messages that may be requested has to be between ${A.GET_CHANNEL_MESSAGES_MIN_RESULTS} and ${A.GET_CHANNEL_MESSAGES_MAX_RESULTS}`);return this.requestHandler.request(u.CHANNEL_MESSAGES(e),t,"get","json")}async getChannelMessage(e,t){return this.requestHandler.request(u.CHANNEL_MESSAGE(e,t),{},"get","json")}async createMessage(e,t,n={disableEveryone:this.disableEveryone}){var r;if(typeof t!="string"&&!t.content&&!t.embeds&&!t.sticker_ids&&!t.components&&!t.files)throw new Error("Missing content, embeds, sticker_ids, components, or files");return typeof t=="string"&&(t={content:t}),t.content&&((r=n.disableEveryone)!=null?r:this.disableEveryone)&&(t.content=t.content.replace(Ae,he)),t.files?this.requestHandler.request(u.CHANNEL_MESSAGES(e),{},"post","multipart",A.standardMultipartHandler(t)):this.requestHandler.request(u.CHANNEL_MESSAGES(e),{},"post","json",t)}async crosspostMessage(e,t){return this.requestHandler.request(u.CHANNEL_MESSAGE_CROSSPOST(e,t),{},"post","json")}async createReaction(e,t,n){return this.requestHandler.request(u.CHANNEL_MESSAGE_REACTION_USER(e,t,n,"@me"),{},"put","json")}async deleteReactionSelf(e,t,n){return this.requestHandler.request(u.CHANNEL_MESSAGE_REACTION_USER(e,t,n,"@me"),{},"delete","json")}async deleteReaction(e,t,n,r){return r?this.requestHandler.request(u.CHANNEL_MESSAGE_REACTION_USER(e,t,n,r),{},"delete","json"):this.requestHandler.request(u.CHANNEL_MESSAGE_REACTION(e,t,n),{},"delete","json")}async getReactions(e,t,n,r){return this.requestHandler.request(u.CHANNEL_MESSAGE_REACTION(e,t,n),r,"get","json")}async deleteAllReactions(e,t){return this.requestHandler.request(u.CHANNEL_MESSAGE_REACTIONS(e,t),{},"delete","json")}async editMessage(e,t,n,r={disableEveryone:this.disableEveryone}){var o;return typeof n=="string"&&(n={content:n}),n.content&&((o=r.disableEveryone)!=null?o:this.disableEveryone)&&(n.content=n.content.replace(Ae,he)),n.files?this.requestHandler.request(u.CHANNEL_MESSAGE(e,t),{},"patch","multipart",A.standardMultipartHandler(n)):this.requestHandler.request(u.CHANNEL_MESSAGE(e,t),{},"patch","json",n)}async deleteMessage(e,t,n){return this.requestHandler.request(u.CHANNEL_MESSAGE(e,t),{},"delete","json",{reason:n})}async bulkDeleteMessages(e,t,n){if(t.length<A.BULK_DELETE_MESSAGES_MIN||t.length>A.BULK_DELETE_MESSAGES_MAX)throw new RangeError(`Amount of messages to be deleted has to be between ${A.BULK_DELETE_MESSAGES_MIN} and ${A.BULK_DELETE_MESSAGES_MAX}`);let r=BigInt(Date.now()-142128e7)*BigInt(2)**BigInt(22),o=t.find(P=>BigInt(P)<r);if(o)throw new Error(`The message ${o} is older than 2 weeks and may not be deleted using the bulk delete endpoint`);let E={messages:t};return n&&Object.assign(E,{reason:n}),this.requestHandler.request(u.CHANNEL_BULK_DELETE(e),{},"post","json",E)}async editChannelPermission(e,t,n){return this.requestHandler.request(u.CHANNEL_PERMISSION(e,t),{},"put","json",n)}async getChannelInvites(e){return this.requestHandler.request(u.CHANNEL_INVITES(e),{},"get","json")}async createChannelInvite(e,t={max_age:86400,max_uses:0,temporary:!1,unique:!1}){return this.requestHandler.request(u.CHANNEL_INVITES(e),{},"post","json",t)}async deleteChannelPermission(e,t,n){return this.requestHandler.request(u.CHANNEL_PERMISSION(e,t),{},"delete","json",{reason:n})}async followAnnouncementChannel(e,t){return this.requestHandler.request(u.CHANNEL_FOLLOWERS(e),{},"post","json",{webhook_channel_id:t})}async startChannelTyping(e){return this.requestHandler.request(u.CHANNEL_TYPING(e),{},"post","json")}async getChannelPinnedMessages(e){return this.requestHandler.request(u.CHANNEL_PINS(e),{},"get","json")}async addChannelPinnedMessage(e,t,n){return this.requestHandler.request(u.CHANNEL_PIN(e,t),{},"put","json",{reason:n})}async removeChannelPinnedMessage(e,t,n){return this.requestHandler.request(u.CHANNEL_PIN(e,t),{},"delete","json",{reason:n})}async createThreadWithMessage(e,t,n){return this.requestHandler.request(u.CHANNEL_MESSAGE_THREADS(e,t),{},"post","json",n)}async createThreadWithoutMessage(e,t){return this.requestHandler.request(u.CHANNEL_THREADS(e),{},"post","json",t)}async joinThread(e){return this.requestHandler.request(u.CHANNEL_THREAD_MEMBER(e,"@me"),{},"put","json")}async addThreadMember(e,t){return this.requestHandler.request(u.CHANNEL_THREAD_MEMBER(e,t),{},"put","json")}async leaveThread(e){return this.requestHandler.request(u.CHANNEL_THREAD_MEMBER(e,"@me"),{},"delete","json")}removeThreadMember(e,t){return this.requestHandler.request(u.CHANNEL_THREAD_MEMBER(e,t),{},"delete","json")}async getThreadMember(e,t,n){return this.requestHandler.request(u.CHANNEL_THREAD_MEMBER(e,t),{with_member:n},"get","json")}async getThreadMembers(e,t){return this.requestHandler.request(u.CHANNEL_THREAD_MEMBERS(e),t,"get","json")}async getChannelArchivedPublicThreads(e,t){return this.requestHandler.request(u.CHANNEL_THREADS_ARCHIVED_PUBLIC(e),t,"get","json")}async getChannelArchivedPrivateThreads(e,t){return this.requestHandler.request(u.CHANNEL_THREADS_ARCHIVED_PRIVATE(e),t,"get","json")}async getChannelArchivedPrivateThreadsUser(e,t){return this.requestHandler.request(u.CHANNEL_THREADS_ARCHIVED_PRIVATE_USER(e),t,"get","json")}},ze=/^[&!]?\d+$/;function he(s,e){return ze.test(e)?`@${e}`:`@\u200B${e}`}Te.exports=v});var w=d((ts,Ie)=>{var Ze=require("form-data"),p=R(),j=class{constructor(e){this.requestHandler=e}async getEmojis(e){return this.requestHandler.request(p.GUILD_EMOJIS(e),{},"get","json")}async getEmoji(e,t){return this.requestHandler.request(p.GUILD_EMOJI(e,t),{},"get","json")}async createEmoji(e,t){return this.requestHandler.request(p.GUILD_EMOJIS(e),{},"post","json",t)}async updateEmoji(e,t,n){return this.requestHandler.request(p.GUILD_EMOJI(e,t),{},"patch","json",n)}async deleteEmoji(e,t,n){return this.requestHandler.request(p.GUILD_EMOJI(e,t),{},"delete","json",{reason:n})}async getSticker(e){return this.requestHandler.request(p.STICKER(e),{},"get","json")}async getGuildStickers(e){return this.requestHandler.request(p.GUILD_STICKERS(e),{},"get","json")}async getGuildSticker(e,t){return this.requestHandler.request(p.GUILD_STICKER(e,t),{},"get","json")}createGuildSticker(e,t){let n=new Ze,r=t.reason;t.reason&&delete t.reason;for(let o of Object.keys(t))n.append(o,t[o]);return this.requestHandler.request(p.GUILD_STICKERS(e),{},"post","multipart",n,r?{"X-Audit-Log-Reason":r}:void 0)}updateGuildSticker(e,t,n){return this.requestHandler.request(p.GUILD_STICKER(e,t),{},"patch","json",n)}deleteGuildSticker(e,t,n){return this.requestHandler.request(p.GUILD_STICKER(e,t),{},"delete","json",{reason:n})}};Ie.exports=j});var K=d((ss,ge)=>{var l=R(),b=T(),J=class{constructor(e){this.requestHandler=e}async createGuild(e){return this.requestHandler.request(l.GUILDS,{},"post","json",e)}async getGuild(e,t){return this.requestHandler.request(l.GUILD(e),{with_counts:t},"get","json")}async getGuildPreview(e){return this.requestHandler.request(l.GUILD_PREVIEW(e),{},"get","json")}async updateGuild(e,t){return this.requestHandler.request(l.GUILD(e),{},"patch","json",t)}async deleteGuild(e){return this.requestHandler.request(l.GUILD(e),{},"delete","json")}async getGuildChannels(e){return this.requestHandler.request(l.GUILD_CHANNELS(e),{},"get","json")}async createGuildChannel(e,t){return this.requestHandler.request(l.GUILD_CHANNELS(e),{},"post","json",t)}async updateChannelPositions(e,t,n){return this.requestHandler.request(l.GUILD_CHANNELS(e),{},"patch","json",t,n?{"X-Audit-Log-Reason":n}:void 0)}async listActiveThreads(e){return this.requestHandler.request(l.GUILD_THREADS_ACTIVE(e),{},"get","json")}async getGuildMember(e,t){return this.requestHandler.request(l.GUILD_MEMBER(e,t),{},"get","json")}async getGuildMembers(e,t){return this.requestHandler.request(l.GUILD_MEMBERS(e),{},"get","json",t)}async searchGuildMembers(e,t){if(t.limit!==void 0&&(t.limit<b.SEARCH_MEMBERS_MIN_RESULTS||t.limit>b.SEARCH_MEMBERS_MAX_RESULTS))throw new RangeError(`Limit for searching guild members has to be between ${b.SEARCH_MEMBERS_MIN_RESULTS} and ${b.SEARCH_MEMBERS_MAX_RESULTS}`);return this.requestHandler.request(l.GUILD_MEMBERS_SEARCH(e),t,"get","json")}async addGuildMember(e,t,n){return this.requestHandler.request(l.GUILD_MEMBER(e,t),{},"put","json",n)}async updateGuildMember(e,t,n){return this.requestHandler.request(l.GUILD_MEMBER(e,t),{},"patch","json",n)}async updateSelf(e,t){return this.requestHandler.request(l.GUILD_MEMBER(e,"@me"),{},"patch","json",t)}async addGuildMemberRole(e,t,n,r){return this.requestHandler.request(l.GUILD_MEMBER_ROLE(e,t,n),{},"put","json",{reason:r})}async removeGuildMemberRole(e,t,n,r){return this.requestHandler.request(l.GUILD_MEMBER_ROLE(e,t,n),{},"delete","json",{reason:r})}async removeGuildMember(e,t,n){return this.requestHandler.request(l.GUILD_MEMBER(e,t),{},"delete","json",{reason:n})}async getGuildBans(e,t){return this.requestHandler.request(l.GUILD_BANS(e),t,"get","json")}async getGuildBan(e,t){return this.requestHandler.request(l.GUILD_BAN(e,t),{},"get","json")}async createGuildBan(e,t,n){return this.requestHandler.request(l.GUILD_BAN(e,t),{},"put","json",n)}async removeGuildBan(e,t,n){return this.requestHandler.request(l.GUILD_BAN(e,t),{},"delete","json",{reason:n})}async getGuildRoles(e){return this.requestHandler.request(l.GUILD_ROLES(e),{},"get","json")}async createGuildRole(e,t){return this.requestHandler.request(l.GUILD_ROLES(e),{},"post","json",t)}async updateGuildRolePositions(e,t,n){return this.requestHandler.request(l.GUILD_ROLES(e),{},"patch","json",t,n?{"X-Audit-Log-Reason":n}:void 0)}async updateGuildRole(e,t,n){return this.requestHandler.request(l.GUILD_ROLE(e,t),{},"patch","json",n)}async removeGuildRole(e,t,n){return this.requestHandler.request(l.GUILD_ROLE(e,t),{},"delete","json",{reason:n})}async getGuildPruneCount(e,t){return this.requestHandler.request(l.GUILD_PRUNE(e),t,"get","json")}async startGuildPrune(e,t){return this.requestHandler.request(l.GUILD_PRUNE(e),{},"post","json",t)}async getGuildVoiceRegions(e){return this.requestHandler.request(l.GUILD_VOICE_REGIONS(e),{},"get","json")}async getGuildInvites(e){return this.requestHandler.request(l.GUILD_INVITES(e),{},"get","json")}async getGuildIntegrations(e){return this.requestHandler.request(l.GUILD_INTEGRATIONS(e),{},"get","json")}async removeGuildIntegration(e,t,n){return this.requestHandler.request(l.GUILD_INTEGRATION(e,t),{},"delete","json",{reason:n})}async getGuildWidgetSettings(e){return this.requestHandler.request(l.GUILD_WIDGET_SETTINGS(e),{},"get","json")}async updateGuildWidgetSettings(e,t){return this.requestHandler.request(l.GUILD_WIDGET_SETTINGS(e),{},"patch","json",t)}async getGuildWidget(e){return this.requestHandler.request(l.GUILD_WIDGET(e),{},"get","json")}async getGuildVanityURL(e){return this.requestHandler.request(l.GUILD_VANITY(e),{},"get","json")}async getGuildWelcomeScreen(e){return this.requestHandler.request(l.GUILD_WELCOME_SCREEN(e),{},"get","json")}async editGuildWelcomeScreen(e,t){return this.requestHandler.request(l.GUILD_WELCOME_SCREEN(e),{},"patch","json",t)}updateCurrentUserVoiceState(e,t){return this.requestHandler.request(l.GUILD_VOICE_STATE_USER(e,"@me"),{},"patch","json",t)}updateUserVoiceState(e,t,n){return this.requestHandler.request(l.GUILD_VOICE_STATE_USER(e,t),{},"patch","json",n)}};ge.exports=J});var V=d((ns,me)=>{var G=R(),_=T(),x=class{constructor(e){this.requestHandler=e}async listGuildScheduledEvents(e,t){return this.requestHandler.request(G.GUILD_SCHEDULED_EVENTS(e),{with_user_count:t},"get","json")}async createGuildScheduledEvent(e,t){return this.requestHandler.request(G.GUILD_SCHEDULED_EVENTS(e),{},"post","json",t)}async getGuildScheduledEvent(e,t,n){return this.requestHandler.request(G.GUILD_SCHEDULED_EVENT(e,t),{},"get","json",{with_user_count:n})}async editGuildScheduledEvent(e,t,n){return this.requestHandler.request(G.GUILD_SCHEDULED_EVENT(e,t),{},"patch","json",n)}async deleteGuildScheduledEvent(e,t){return this.requestHandler.request(G.GUILD_SCHEDULED_EVENT(e,t),{},"delete","json")}async getGuildScheduledEventUsers(e,t,n){if((n==null?void 0:n.limit)!==void 0&&(n.limit<_.GET_GUILD_SCHEDULED_EVENT_USERS_MIN_RESULTS||n.limit>_.GET_GUILD_SCHEDULED_EVENT_USERS_MAX_RESULTS))throw new RangeError(`The maximum amount of users that may be requested has to be between ${_.GET_GUILD_SCHEDULED_EVENT_USERS_MIN_RESULTS} and ${_.GET_GUILD_SCHEDULED_EVENT_USERS_MAX_RESULTS}`);return this.requestHandler.request(G.GUILD_SCHEDULED_EVENT_USERS(e,t),n,"get","json")}};me.exports=x});var F=d((rs,Ge)=>{var m=R(),Q=class{constructor(e){this.requestHandler=e}getGuildTemplate(e){return this.requestHandler.request(m.TEMPLATE(e),{},"get","json")}createGuildFromGuildTemplate(e,t){return this.requestHandler.request(m.TEMPLATE(e),{},"post","json",t)}getGuildTemplates(e){return this.requestHandler.request(m.GUILD_TEMPLATES(e),{},"get","json")}createGuildTemplate(e,t){return this.requestHandler.request(m.GUILD_TEMPLATES(e),{},"post","json",t)}syncGuildTemplate(e,t){return this.requestHandler.request(m.GUILD_TEMPLATE(e,t),{},"put","json")}modifyGuildTemplate(e,t,n){return this.requestHandler.request(m.GUILD_TEMPLATE(e,t),{},"patch","json",n)}deleteGuildTemplate(e,t){return this.requestHandler.request(m.GUILD_TEMPLATE(e,t),{},"delete","json")}};Ge.exports=Q});var Y=d((is,ye)=>{var c=R(),et=T(),X=class{constructor(e,t){this.requestHandler=e,this.webhooks=t}getApplicationCommands(e,t){return this.requestHandler.request(c.APPLICATION_COMMANDS(e),{with_localizations:t},"get","json")}createApplicationCommand(e,t){return this.requestHandler.request(c.APPLICATION_COMMANDS(e),{},"post","json",t)}getApplicationCommand(e,t){return this.requestHandler.request(c.APPLICATION_COMMAND(e,t),{},"get","json")}editApplicationCommand(e,t,n){return this.requestHandler.request(c.APPLICATION_COMMAND(e,t),{},"patch","json",n)}deleteApplicationCommand(e,t){return this.requestHandler.request(c.APPLICATION_COMMAND(e,t),{},"delete","json")}bulkOverwriteApplicationCommands(e,t){return this.requestHandler.request(c.APPLICATION_COMMANDS(e),{},"put","json",t)}getGuildApplicationCommands(e,t,n){return this.requestHandler.request(c.APPLICATION_GUILD_COMMANDS(e,t),{with_localizations:n},"get","json")}createGuildApplicationCommand(e,t,n){return this.requestHandler.request(c.APPLICATION_GUILD_COMMANDS(e,t),{},"post","json",n)}getGuildApplicationCommand(e,t,n){return this.requestHandler.request(c.APPLICATION_GUILD_COMMAND(e,t,n),{},"get","json")}editGuildApplicationCommand(e,t,n,r){return this.requestHandler.request(c.APPLICATION_GUILD_COMMAND(e,t,n),{},"patch","json",r)}deleteGuildApplicationCommand(e,t,n){return this.requestHandler.request(c.APPLICATION_GUILD_COMMAND(e,t,n),{},"delete","json")}bulkOverwriteGuildApplicationCommands(e,t,n){return this.requestHandler.request(c.APPLICATION_GUILD_COMMANDS(e,t),{},"put","json",n)}getGuildApplicationCommandPermissions(e,t,n){return n?this.requestHandler.request(c.APPLICATION_GUILD_COMMAND_PERMISSIONS(e,t,n),{},"get","json"):this.requestHandler.request(c.APPLICATION_GUILD_COMMANDS_PERMISSIONS(e,t),{},"get","json")}editGuildApplicationCommandPermissions(e,t,n,r){let o={permissions:r};return this.requestHandler.request(c.APPLICATION_GUILD_COMMAND_PERMISSIONS(e,t,n),{},"put","json",o)}createInteractionResponse(e,t,n){return n.files?this.requestHandler.request(c.INTERACTION_CALLBACK(e,t),{},"post","multipart",et.standardMultipartHandler(n)):this.requestHandler.request(c.INTERACTION_CALLBACK(e,t),{},"post","json",n)}getOriginalInteractionResponse(e,t){return this.webhooks.getWebhookMessage(e,t,"@original")}editOriginalInteractionResponse(e,t,n){return this.webhooks.editWebhookMessage(e,t,"@original",n)}deleteOriginalInteractionResponse(e,t){return this.webhooks.deleteWebhookMessage(e,t,"@original")}createFollowupMessage(e,t,n){return this.webhooks.executeWebhook(e,t,n)}getFollowupMessage(e,t,n){return this.webhooks.getWebhookMessage(e,t,n)}editFollowupMessage(e,t,n,r){return this.webhooks.editWebhookMessage(e,t,n,r)}deleteFollowupMessage(e,t,n){return this.webhooks.deleteWebhookMessage(e,t,n)}};ye.exports=X});var Z=d((os,_e)=>{var be=R(),z=class{constructor(e){this.requestHandler=e}async getInvite(e,t){return this.requestHandler.request(be.INVITES(e),t,"get","json")}async deleteInvite(e){return this.requestHandler.request(be.INVITES(e),{},"delete","json")}};_e.exports=z});var te=d((ls,Ce)=>{var C=R(),ee=class{constructor(e){this.requestHandler=e}async createStageInstance(e){return this.requestHandler.request(C.STAGE_INSTANCES,{},"post","json",e)}async getStageInstance(e){return this.requestHandler.request(C.STAGE_INSTANCE_CHANNEL(e),{},"get","json")}async editStageInstance(e,t){return this.requestHandler.request(C.STAGE_INSTANCE_CHANNEL(e),{},"patch","json",t)}async deleteStageInstance(e,t){return this.requestHandler.request(C.STAGE_INSTANCE_CHANNEL(e),{},"delete","json",{reason:t})}};Ce.exports=ee});var ne=d((us,Ne)=>{var h=R(),se=class{constructor(e){this.requestHandler=e}async getSelf(){return this.requestHandler.request(h.USER("@me"),{},"get","json")}async getUser(e){return this.requestHandler.request(h.USER(e),{},"get","json")}async updateSelf(e){return this.requestHandler.request(h.USER("@me"),{},"patch","json",e)}async getGuilds(e){return this.requestHandler.request(h.USER_GUILDS("@me"),{},"get","json",e)}async leaveGuild(e){return this.requestHandler.request(h.USER_GUILD("@me",e),{},"delete","json")}async createDirectMessageChannel(e){return this.requestHandler.request(h.USER_CHANNELS("@me"),{},"post","json",{recipient_id:e})}async createGroupDirectMessageChannel(e){return this.requestHandler.request(h.USER_CHANNELS("@me"),{},"post","json",e)}async getConnections(){return this.requestHandler.request(h.USER_CONNECTIONS("@me"),{},"get","json")}async getApplicationRoleConnection(e){return this.requestHandler.request(h.USER_APPLICATION_ROLE_CONNECTION("@me",e),{},"get","json")}async updateApplicationRoleConnection(e,t){return this.requestHandler.request(h.USER_APPLICATION_ROLE_CONNECTION("@me",e),{},"put","json",t)}};Ne.exports=se});var ie=d((as,He)=>{var tt=R(),re=class{constructor(e){this.requestHandler=e}async getVoiceRegions(){return this.requestHandler.request(tt.VOICE_REGIONS,{},"get","json")}};He.exports=re});var le=d((Es,Me)=>{var S=R(),Le=T(),st=/@([^<>@ ]*)/gsmu,oe=class{constructor(e,t){this.requestHandler=e,this.disableEveryone=t}async createWebhook(e,t){return this.requestHandler.request(S.CHANNEL_WEBHOOKS(e),{},"post","json",t)}async getChannelWebhooks(e){return this.requestHandler.request(S.CHANNEL_WEBHOOKS(e),{},"get","json")}async getGuildWebhooks(e){return this.requestHandler.request(S.GUILD_WEBHOOKS(e),{},"get","json")}async getWebhook(e,t){return t?this.requestHandler.request(S.WEBHOOK_TOKEN(e,t),{},"get","json"):this.requestHandler.request(S.WEBHOOK(e),{},"get","json")}async updateWebhook(e,t,n){return n?this.requestHandler.request(S.WEBHOOK_TOKEN(e,n),{},"patch","json",t):this.requestHandler.request(S.WEBHOOK(e),{},"patch","json",t)}async deleteWebhook(e,t){return t?this.requestHandler.request(S.WEBHOOK_TOKEN(e,t),{},"delete","json"):this.requestHandler.request(S.WEBHOOK(e),{},"delete","json")}async executeWebhook(e,t,n,r){var o;if(typeof n!="string"&&!(n!=null&&n.content)&&!(n!=null&&n.embeds)&&!(n!=null&&n.components)&&!(n!=null&&n.files))throw new Error("Missing content or embeds or components or files");return typeof n=="string"&&(n={content:n}),n.content&&((o=r==null?void 0:r.disableEveryone)!=null?o:this.disableEveryone)&&(n.content=n.content.replace(st,rt)),r&&delete r.disableEveryone,n.files?this.requestHandler.request(`${S.WEBHOOK_TOKEN(e,t)}`,r,"post","multipart",Le.standardMultipartHandler(n)):this.requestHandler.request(S.WEBHOOK_TOKEN(e,t),r,"post","json",n)}async executeWebhookSlack(e,t,n,r){return this.requestHandler.request(S.WEBHOOK_TOKEN_SLACK(e,t),r,"post","json",n)}async executeWebhookGitHub(e,t,n,r={}){return this.requestHandler.request(S.WEBHOOK_TOKEN_GITHUB(e,t),r,"post","json",n)}async getWebhookMessage(e,t,n,r){return this.requestHandler.request(S.WEBHOOK_TOKEN_MESSAGE(e,t,n),{thread_id:r},"get","json")}async editWebhookMessage(e,t,n,r){let o;return r.thread_id&&(o=r.thread_id),delete r.thread_id,console.log(r),r.files?this.requestHandler.request(S.WEBHOOK_TOKEN_MESSAGE(e,t,n),{thread_id:o},"patch","multipart",Le.standardMultipartHandler(r)):this.requestHandler.request(S.WEBHOOK_TOKEN_MESSAGE(e,t,n),{thread_id:o},"patch","json",r)}async deleteWebhookMessage(e,t,n,r){return this.requestHandler.request(S.WEBHOOK_TOKEN_MESSAGE(e,t,n),{thread_id:r},"delete","json")}},nt=/^[&!]?\d+$/;function rt(s,e){return nt.test(e)?`@${e}`:`@\u200B${e}`}Me.exports=oe});var qe=d((ds,it)=>{it.exports={name:"snowtransfer",version:"0.8.0",description:"Minimalistic Rest client for the Discord Api",main:"./dist/index.js",types:"./dist/index.d.ts",engines:{node:">=12.0.0"},keywords:["discord","api","rest","http","microservice","discord bot","discord bot microservice","microservice bot"],scripts:{"build:src":"tsup src/index.ts --dts --sourcemap --format cjs --target node12 --minify","build:docs":"typedoc --name SnowTransfer --excludeExternals --sort static-first --sort alphabetical"},repository:{type:"git",url:"git+https://github.com/DasWolke/SnowTransfer.git"},bugs:"https://github.com/DasWolke/SnowTransfer/issues",author:"wolke <wolke@weeb.sh>",license:"MIT",dependencies:{"discord-api-types":"^0.37.47","form-data":"^4.0.0",undici:"^5.22.1"},devDependencies:{"@types/node":"^20.3.3","@typescript-eslint/eslint-plugin":"^5.60.1","@typescript-eslint/parser":"^5.60.1",eslint:"^8.44.0",tsup:"^7.1.0",typedoc:"^0.24.8","typedoc-plugin-mdn-links":"^3.0.3",typescript:"^5.1.6"},files:["dist","README.md","LICENSE.md"]}});function Oe(s){let e=0;for(let[t,n]of Object.entries(s))n==null?delete s[t]:e++;return e>0?`?${new URLSearchParams(s).toString()}`:""}var Ue,ot,Rs,De,ue,lt,ut,at,Et,dt,Rt,ct,St,Pt,N,H,ae,L,fe=Je(()=>{Ue=require("events"),ot=require("crypto"),Rs=require("form-data"),De=require("undici"),ue=R(),{version:lt}=qe(),ut=T(),at=/application\/json/,Et=/\/([a-z-]+)\/(?:\d{17,19})/g,dt=/\/reactions\/[^/]+/g,Rt=/\/reactions\/:id\/[^/]+/g,ct=/^\/webhooks\/(\d+)\/[A-Za-z0-9-_]{64,}/,St=/\/messages\/:id$/,Pt=/\/guilds\/\d+\/channels$/,N=class extends Error{constructor(t,n,r,o){var E;super();this.name="DiscordAPIError",this.message=n.message||String(n),this.method=r,this.path=t,this.code=(E=n.code)!=null?E:4e3,this.httpStatus=o}},H=class{constructor(){this.buckets={};this._global=!1;this.globalReset=0;this.globalResetTimeout=null}get global(){return this._global}set global(e){if(e&&this.globalReset!==0){this.globalResetTimeout&&clearTimeout(this.globalResetTimeout);let t=this;this.globalResetTimeout=setTimeout(()=>{t.global=!1},this.globalReset).unref()}else{this.globalResetTimeout&&clearTimeout(this.globalResetTimeout),this.globalResetTimeout=null,this.globalReset=0;for(let t of Object.values(this.buckets))t.checkQueue()}this._global=e}routify(e,t){let n=e.replace(Et,function(r,o){return o==="channels"||o==="guilds"||o==="webhooks"?r:`/${o}/:id`}).replace(dt,"/reactions/:id").replace(Rt,"/reactions/:id/:userID").replace(ct,"/webhooks/$1/:token");if(t.toUpperCase()==="DELETE"&&St.test(n)?n=t+n:t.toUpperCase()==="GET"&&Pt.test(n)&&(n="/guilds/:id/channels"),t==="PUT"||t==="DELETE"){let r=n.indexOf("/reactions");r!==-1&&(n="MODIFY"+n.slice(0,r+10))}return n}queue(e,t,n){let r=this.routify(t,n);this.buckets[r]||(this.buckets[r]=new ae(this,r)),this.buckets[r].queue(e)}},ae=class{constructor(e,t){this.fnQueue=[];this.limit=5;this.remaining=1;this.reset=5e3;this.resetTimeout=null;this.ratelimiter=e,this.routeKey=t}queue(e){return new Promise(t=>{let n=()=>(this.remaining--,this.resetTimeout||(this.resetTimeout=setTimeout(()=>this.resetRemaining(),this.reset)),this.remaining!==0&&this.checkQueue(),t(e(this)));this.fnQueue.push({fn:e,callback:n}),this.checkQueue()})}checkQueue(){this.ratelimiter.global||this.fnQueue.length&&this.remaining!==0&&this.fnQueue.splice(0,1)[0].callback()}resetRemaining(){this.remaining=this.limit,this.resetTimeout&&(clearTimeout(this.resetTimeout),this.resetTimeout=null),this.fnQueue.length?this.checkQueue():delete this.ratelimiter.buckets[this.routeKey]}dropQueue(){this.fnQueue.length=0}},L=class extends Ue.EventEmitter{constructor(t,n){super();this.ratelimiter=t,this.options={baseHost:ue.BASE_HOST,baseURL:ue.BASE_URL,headers:{"User-Agent":`Discordbot (https://github.com/DasWolke/SnowTransfer, ${lt}) Node.js/${process.version}`}},n.token&&(this.options.headers.Authorization=n.token),this.options.baseHost=n.baseHost,this.apiURL=this.options.baseHost+ue.BASE_URL,this.latency=500}request(t,n={},r,o="json",E,P){return new Promise(async(I,ve)=>{this.ratelimiter.queue(async M=>{let q=ot.randomBytes(20).toString("hex");try{this.emit("request",q,{endpoint:t,method:r,dataType:o,data:E!=null?E:{}});let a;if(o=="json")a=await this._request(t,n,r,E,P);else if(o=="multipart"&&E)a=await this._multiPartRequest(t,n,r,E);else throw new Error("Forbidden dataType. Use json or multipart or ensure multipart has FormData");if(a.status&&!ut.OK_STATUS_CODES.includes(a.status)&&a.status!==429)throw new N(t,a.headers["content-type"]&&at.test(a.headers["content-type"])?{message:JSON.stringify(await a.json())}:{message:await a.text()},r,a.status);if(this._applyRatelimitHeaders(M,a.headers),a.status===429){if(!this.ratelimiter.global){let g=JSON.parse(String(a.body));g.reset_after!==void 0?this.ratelimiter.globalReset=g.reset_after*1e3:this.ratelimiter.globalReset=1e3,g.global!==void 0&&(this.ratelimiter.global=g.global)}throw this.emit("rateLimit",{timeout:M.reset,limit:M.limit,method:r,path:t,route:this.ratelimiter.routify(t,r)}),new N(t,{message:"You're being ratelimited",code:429},r,a.status)}if(this.emit("done",q,a),a.body){let g;try{g=await a.json()}catch{return I(void 0)}return I(g)}else return I(void 0)}catch(a){return this.emit("requestError",q,a),ve(a)}},t,r)})}_applyRatelimitHeaders(t,n){n["x-ratelimit-remaining"]&&(t.remaining=parseInt(n["x-ratelimit-remaining"])),n["x-ratelimit-limit"]&&(t.limit=parseInt(n["x-ratelimit-limit"])),n["x-ratelimit-reset"]&&(t.reset=parseInt(n["x-ratelimit-reset"])-Date.now())}async _request(t,n={},r,o,E){let P={...this.options.headers};E&&Object.assign(P,E),typeof o!="string"&&(o!=null&&o.reason)&&(P["X-Audit-Log-Reason"]=encodeURIComponent(o.reason),delete o.reason);let I;return["head","get"].includes(r)||(typeof o=="object"?I=JSON.stringify(o):I=String(o)),P["Content-Type"]="application/json",De.fetch(`${this.apiURL}${t}${Oe(n)}`,{method:r.toUpperCase(),headers:P,body:I})}async _multiPartRequest(t,n={},r,o,E){let P={...this.options.headers,...o.getHeaders()};return E&&Object.assign(P,E),De.fetch(`${this.apiURL}${t}${Oe(n)}`,{method:r.toUpperCase(),headers:P,body:o.getBuffer()})}}});var We=d((Ps,Be)=>{fe();var pt=U(),At=k(),ht=W(),Tt=$(),It=w(),gt=K(),mt=V(),Gt=F(),yt=Y(),bt=Z(),_t=te(),Ct=ne(),Nt=ie(),Ht=le(),ke=R(),Ee=class{constructor(e,t){if(typeof e=="string"&&e==="")throw new Error("Missing token");e&&!e.startsWith("Bot")&&!e.startsWith("Bearer")&&(e=`Bot ${e}`),this.options={baseHost:ke.BASE_HOST,disableEveryone:!1},this.token=e,Object.assign(this.options,t),this.ratelimiter=new H,this.requestHandler=new L(this.ratelimiter,{token:this.token,baseHost:this.options.baseHost||ke.BASE_HOST}),this.channel=new Tt(this.requestHandler,this.options.disableEveryone),this.user=new Ct(this.requestHandler),this.guildAssets=new It(this.requestHandler),this.webhook=new Ht(this.requestHandler,this.options.disableEveryone),this.guild=new gt(this.requestHandler),this.guildScheduledEvent=new mt(this.requestHandler),this.guildTemplate=new Gt(this.requestHandler),this.interaction=new yt(this.requestHandler,this.webhook),this.invite=new bt(this.requestHandler),this.voice=new Nt(this.requestHandler),this.bot=new ht(this.requestHandler),this.auditLog=new pt(this.requestHandler),this.stageInstance=new _t(this.requestHandler),this.autoMod=new At(this.requestHandler)}};Be.exports=Ee});var Vt={};Ke(Vt,{AuditLogMethods:()=>Lt,AutoModerationMethods:()=>Mt,BotMethods:()=>qt,ChannelMethods:()=>Dt,Constants:()=>Jt,Endpoints:()=>Kt,GuildAssetsMethods:()=>Ot,GuildMethods:()=>Ut,GuildScheduledEventMethods:()=>ft,GuildTemplateMethods:()=>kt,InteractionMethods:()=>Bt,InviteMethods:()=>Wt,SnowTransfer:()=>xt,StageInstanceMethods:()=>vt,UserMethods:()=>$t,VoiceMethods:()=>jt,WebhookMethods:()=>wt});module.exports=Ve(Vt);var Lt=U(),Mt=k(),qt=W(),Dt=$(),Ot=w(),Ut=K(),ft=V(),kt=F(),Bt=Y(),Wt=Z(),vt=te(),$t=ne(),jt=ie(),wt=le(),Jt=T(),Kt=R(),xt=We();0&&(module.exports={AuditLogMethods,AutoModerationMethods,BotMethods,ChannelMethods,Constants,Endpoints,GuildAssetsMethods,GuildMethods,GuildScheduledEventMethods,GuildTemplateMethods,InteractionMethods,InviteMethods,SnowTransfer,StageInstanceMethods,UserMethods,VoiceMethods,WebhookMethods}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "snowtransfer", | ||
"version": "0.7.3", | ||
"version": "0.8.0", | ||
"description": "Minimalistic Rest client for the Discord Api", | ||
@@ -32,8 +32,7 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"centra": "^2.6.0", | ||
"discord-api-types": "^0.37.47", | ||
"form-data": "^4.0.0" | ||
"form-data": "^4.0.0", | ||
"undici": "^5.22.1" | ||
}, | ||
"devDependencies": { | ||
"@types/centra": "^2.2.0", | ||
"@types/node": "^20.3.3", | ||
@@ -40,0 +39,0 @@ "@typescript-eslint/eslint-plugin": "^5.60.1", |
Sorry, the diff of this file is too big to display
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
468343
8
3420
+ Addedundici@^5.22.1
+ Added@fastify/busboy@2.1.1(transitive)
+ Addedundici@5.28.4(transitive)
- Removedcentra@^2.6.0
- Removedcentra@2.7.0(transitive)
- Removedfollow-redirects@1.15.9(transitive)