discord-slim
Advanced tools
Comparing version 2.6.8 to 2.6.9
@@ -19,9 +19,20 @@ import { RequestOptions } from '../request'; | ||
description_localized?: string | undefined; | ||
dm_permission?: undefined; | ||
})[]>; | ||
export declare const BulkOverwriteGlobalCommands: (application_id: string, params: types.ApplicationCommandBase[], requestOptions?: RequestOptions | undefined) => Promise<types.ApplicationCommand[]>; | ||
export declare const CreateGuildCommand: (application_id: string, guild_id: string, params: types.ApplicationCommandBase, requestOptions?: RequestOptions | undefined) => Promise<types.ApplicationCommand>; | ||
export declare const GetGuildCommand: (application_id: string, guild_id: string, command_id: string, requestOptions?: RequestOptions | undefined) => Promise<types.ApplicationCommand>; | ||
export declare const EditGuildCommand: (application_id: string, guild_id: string, command_id: string, params: Partial<Omit<types.ApplicationCommandBase, 'type'>>, requestOptions?: RequestOptions | undefined) => Promise<types.ApplicationCommand>; | ||
export declare const CreateGuildCommand: (application_id: string, guild_id: string, params: types.ApplicationCommandBase & { | ||
dm_permission?: undefined; | ||
}, requestOptions?: RequestOptions | undefined) => Promise<types.ApplicationCommand>; | ||
export declare const GetGuildCommand: (application_id: string, guild_id: string, command_id: string, requestOptions?: RequestOptions | undefined) => Promise<types.ApplicationCommand & { | ||
dm_permission?: undefined; | ||
}>; | ||
export declare const EditGuildCommand: (application_id: string, guild_id: string, command_id: string, params: Partial<Omit<types.ApplicationCommandBase, ('type' | 'dm_permission')>>, requestOptions?: RequestOptions | undefined) => Promise<types.ApplicationCommand & { | ||
dm_permission?: undefined; | ||
}>; | ||
export declare const DeleteGuildCommand: (application_id: string, guild_id: string, command_id: string, requestOptions?: RequestOptions | undefined) => Promise<null>; | ||
export declare const BulkOverwriteGuildCommands: (application_id: string, guild_id: string, params: types.ApplicationCommandBase[], requestOptions?: RequestOptions | undefined) => Promise<types.ApplicationCommand[]>; | ||
export declare const BulkOverwriteGuildCommands: (application_id: string, guild_id: string, params: (types.ApplicationCommandBase & { | ||
dm_permission?: undefined; | ||
})[], requestOptions?: RequestOptions | undefined) => Promise<(types.ApplicationCommand & { | ||
dm_permission?: undefined; | ||
})[]>; | ||
export declare const GetGuildCommandPermissions: (application_id: string, guild_id: string, requestOptions?: RequestOptions | undefined) => Promise<types.GuildApplicationCommandPermissions[]>; | ||
@@ -32,6 +43,2 @@ export declare const GetCommandPermissions: (application_id: string, guild_id: string, command_id: string, requestOptions?: RequestOptions | undefined) => Promise<types.GuildApplicationCommandPermissions>; | ||
}, requestOptions?: RequestOptions | undefined) => Promise<null>; | ||
export declare const BatchEditCommandPermissions: (application_id: string, guild_id: string, params: { | ||
id: string; | ||
permissions: types.ApplicationCommandPermissions[]; | ||
}[], requestOptions?: RequestOptions | undefined) => Promise<types.GuildApplicationCommandPermissions[]>; | ||
export declare const CreateInteractionResponse: (interaction_id: string, interaction_token: string, params: types.InteractionResponse, requestOptions?: RequestOptions | undefined) => Promise<null>; | ||
@@ -38,0 +45,0 @@ export declare const GetOriginalInteractionResponse: (application_id: string, interaction_token: string, requestOptions?: RequestOptions | undefined) => Promise<types.Message>; |
@@ -29,10 +29,13 @@ import { RequestOptions } from '../request'; | ||
rate_limit_per_user?: number | null; | ||
} & { | ||
content?: string; | ||
embeds?: types.Embed[]; | ||
allowed_mentions?: types.AllowedMentions; | ||
components?: types.ActionRow[]; | ||
sticker_ids?: string[]; | ||
flags?: helpers.MessageFlags; | ||
}, requestOptions?: RequestOptions | undefined) => Promise<types.Thread>; | ||
message: { | ||
content?: string; | ||
embeds?: types.Embed[]; | ||
allowed_mentions?: types.AllowedMentions; | ||
components?: types.ActionRow[]; | ||
sticker_ids?: string[]; | ||
flags?: helpers.MessageFlags; | ||
}; | ||
}, requestOptions?: RequestOptions | undefined) => Promise<types.Thread & { | ||
message: types.Message; | ||
}>; | ||
export declare const Join: (thread_id: string, requestOptions?: RequestOptions | undefined) => Promise<null>; | ||
@@ -39,0 +42,0 @@ export declare const AddMember: (thread_id: string, user_id: string, requestOptions?: RequestOptions | undefined) => Promise<null>; |
@@ -8,2 +8,3 @@ /// <reference types="node" /> | ||
RESUMED = "RESUMED", | ||
APPLICATION_COMMAND_PERMISSIONS_UPDATE = "APPLICATION_COMMAND_PERMISSIONS_UPDATE", | ||
CHANNEL_CREATE = "CHANNEL_CREATE", | ||
@@ -69,2 +70,3 @@ CHANNEL_UPDATE = "CHANNEL_UPDATE", | ||
[Events.RESUMED]: {}; | ||
[Events.APPLICATION_COMMAND_PERMISSIONS_UPDATE]: types.ApplicationCommandPermissions; | ||
[Events.CHANNEL_CREATE]: types.GuildChannel; | ||
@@ -71,0 +73,0 @@ [Events.CHANNEL_UPDATE]: types.GuildChannel | types.GroupDMChannel; |
@@ -117,3 +117,4 @@ export declare const HOST = "https://discord.com", API: "https://discord.com/api", API_VERSION = 9, API_PATH: "https://discord.com/api/v9", CDN = "https://cdn.discordapp.com"; | ||
THREAD_UPDATE = 111, | ||
THREAD_DELETE = 112 | ||
THREAD_DELETE = 112, | ||
APPLICATION_COMMAND_PERMISSION_UPDATE = 121 | ||
} | ||
@@ -333,3 +334,4 @@ export declare enum ChannelTypes { | ||
ROLE = 1, | ||
USER = 2 | ||
USER = 2, | ||
CHANNEL = 3 | ||
} | ||
@@ -359,2 +361,3 @@ export declare enum InteractionTypes { | ||
APPLICATIONS_COMMANDS_UPDATE = "applications.commands.update", | ||
APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE = "applications.commands.permissions.update", | ||
APPLICATIONS_STORE_UPDATE = "applications.store.update", | ||
@@ -361,0 +364,0 @@ APPLICATIONS_ENTITLEMENTS = "applications.entitlements", |
@@ -52,2 +52,3 @@ import type * as helpers from './helpers'; | ||
color: number; | ||
command_id: string; | ||
communication_disabled_until: string; | ||
@@ -609,3 +610,4 @@ deaf: boolean; | ||
options?: ApplicationCommandOption[]; | ||
default_permission?: boolean; | ||
default_member_permissions?: string | null; | ||
dm_permission?: boolean | null; | ||
} & ({ | ||
@@ -746,3 +748,3 @@ type?: helpers.ApplicationCommandTypes.CHAT_INPUT; | ||
custom_id: string; | ||
components: Component[]; | ||
components: TextInput[]; | ||
}; | ||
@@ -934,6 +936,5 @@ export declare type InteractionDataResolved = { | ||
}; | ||
export declare type Component = (ActionRow | Button | SelectMenu | TextInput); | ||
export declare type ActionRow = { | ||
type: helpers.ComponentTypes.ACTION_ROW; | ||
components: Exclude<Component, ActionRow>[]; | ||
components: (Button | SelectMenu)[]; | ||
}; | ||
@@ -940,0 +941,0 @@ export declare type Button = { |
{ | ||
"name": "discord-slim", | ||
"version": "2.6.8", | ||
"version": "2.6.9", | ||
"description": "Lightweight Discord API library for Node.js.", | ||
@@ -24,4 +24,4 @@ "author": "Hanabishi", | ||
"dependencies": { | ||
"ws": "8.5" | ||
"ws": "8.6" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
220093
4927