chore: unpin discord-api-types (#10524)

* chore: unpin discord-api-types

* chore: bump discord-api-types
This commit is contained in:
Qjuh
2024-10-01 12:07:58 +02:00
committed by GitHub
parent 9aa3b635ef
commit b20346f430
11 changed files with 123 additions and 118 deletions

View File

@@ -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",

View File

@@ -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;