mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
chore: unpin discord-api-types (#10524)
* chore: unpin discord-api-types * chore: bump discord-api-types
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
"@discordjs/util": "workspace:^",
|
||||
"@discordjs/ws": "1.1.1",
|
||||
"@sapphire/snowflake": "3.5.3",
|
||||
"discord-api-types": "0.37.100",
|
||||
"discord-api-types": "^0.37.101",
|
||||
"fast-deep-equal": "3.1.3",
|
||||
"lodash.snakecase": "4.1.1",
|
||||
"tslib": "^2.6.3",
|
||||
|
||||
18
packages/discord.js/typings/index.d.ts
vendored
18
packages/discord.js/typings/index.d.ts
vendored
@@ -1610,7 +1610,7 @@ export abstract class GuildChannel extends BaseChannel {
|
||||
public get permissionsLocked(): boolean | null;
|
||||
public get position(): number;
|
||||
public rawPosition: number;
|
||||
public type: Exclude<ChannelType, ChannelType.DM | ChannelType.GroupDM>;
|
||||
public type: GuildChannelTypes;
|
||||
public get viewable(): boolean;
|
||||
public clone(options?: GuildChannelCloneOptions): Promise<this>;
|
||||
public delete(reason?: string): Promise<this>;
|
||||
@@ -2111,7 +2111,13 @@ export interface MessageCall {
|
||||
participants: readonly Snowflake[];
|
||||
}
|
||||
|
||||
export type MessageComponentType = Exclude<ComponentType, ComponentType.TextInput | ComponentType.ActionRow>;
|
||||
export type MessageComponentType =
|
||||
| ComponentType.Button
|
||||
| ComponentType.ChannelSelect
|
||||
| ComponentType.MentionableSelect
|
||||
| ComponentType.RoleSelect
|
||||
| ComponentType.StringSelect
|
||||
| ComponentType.UserSelect;
|
||||
|
||||
export interface MessageCollectorOptionsParams<
|
||||
ComponentType extends MessageComponentType,
|
||||
@@ -2304,11 +2310,11 @@ export class MessageComponentInteraction<Cached extends CacheType = CacheType> e
|
||||
public get component(): CacheTypeReducer<
|
||||
Cached,
|
||||
MessageActionRowComponent,
|
||||
Exclude<APIMessageComponent, APIActionRowComponent<APIMessageActionRowComponent>>,
|
||||
MessageActionRowComponent | Exclude<APIMessageComponent, APIActionRowComponent<APIMessageActionRowComponent>>,
|
||||
MessageActionRowComponent | Exclude<APIMessageComponent, APIActionRowComponent<APIMessageActionRowComponent>>
|
||||
APIMessageActionRowComponent,
|
||||
MessageActionRowComponent | APIMessageActionRowComponent,
|
||||
MessageActionRowComponent | APIMessageActionRowComponent
|
||||
>;
|
||||
public componentType: Exclude<ComponentType, ComponentType.ActionRow | ComponentType.TextInput>;
|
||||
public componentType: MessageComponentType;
|
||||
public customId: string;
|
||||
public channelId: Snowflake;
|
||||
public deferred: boolean;
|
||||
|
||||
Reference in New Issue
Block a user