refactor: split messages from channels (#1075)

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
This commit is contained in:
Almeida
2025-09-05 10:15:29 +01:00
committed by GitHub
parent af3907b106
commit 4d3d83d09e
32 changed files with 7162 additions and 7162 deletions

View File

@@ -1,5 +1,5 @@
import type { Snowflake } from '../../../../globals.ts';
import type { APIMessage } from '../../channel.ts';
import type { APIMessage } from '../../message.ts';
import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands.ts';
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper, APIUserInteractionDataResolved } from '../base.ts';
import type { APIBaseApplicationCommandInteractionData } from './internals.ts';

View File

@@ -1,14 +1,6 @@
import type { Permissions, Snowflake } from '../../../globals.ts';
import type { APIRole, ApplicationIntegrationType, InteractionContextType, Locale } from '../../../v10.ts';
import type {
APIAttachment,
APIChannel,
APIMessage,
APIPartialChannel,
APIThreadChannel,
ChannelType,
ThreadChannelType,
} from '../channel.ts';
import type { APIChannel, APIPartialChannel, APIThreadChannel, ChannelType, ThreadChannelType } from '../channel.ts';
import type {
APIBaseGuildMember,
APIFlaggedGuildMember,
@@ -17,6 +9,7 @@ import type {
APIGuildMemberJoined,
APIPartialInteractionGuild,
} from '../guild.ts';
import type { APIAttachment, APIMessage } from '../message.ts';
import type { APIEntitlement } from '../monetization.ts';
import type { APIUser } from '../user.ts';
import type { InteractionType } from './responses.ts';

View File

@@ -1,6 +1,6 @@
import type { Snowflake } from '../../../globals.ts';
import type { ComponentType } from '../channel.ts';
import type { APIBaseInteraction, InteractionType } from '../interactions.ts';
import type { ComponentType } from '../message.ts';
import type {
APIDMInteractionWrapper,
APIGuildInteractionWrapper,

View File

@@ -1,4 +1,3 @@
import type { APIBaseComponent } from '../channel.ts';
import type {
APIBaseInteraction,
APIDMInteractionWrapper,
@@ -7,6 +6,7 @@ import type {
ComponentType,
InteractionType,
} from '../mod.ts';
import type { APIBaseComponent } from '../message.ts';
export interface APIBaseModalSubmitComponent<T extends ComponentType> extends APIBaseComponent<T> {
type: T;

View File

@@ -4,7 +4,7 @@ import type {
APIComponentInModalActionRow,
APILabelComponent,
APITextDisplayComponent,
} from '../channel.ts';
} from '../message.ts';
import type { APIApplicationCommandOptionChoice } from './applicationCommands.ts';
/**

File diff suppressed because it is too large Load Diff

1786
deno/payloads/v10/message.ts generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -9,6 +9,7 @@ export * from './guild.ts';
export * from './guildScheduledEvent.ts';
export * from './interactions.ts';
export * from './invite.ts';
export * from './message.ts';
export * from './monetization.ts';
export * from './oauth2.ts';
export * from './permissions.ts';

View File

@@ -1,5 +1,5 @@
import type { Snowflake } from '../../../../globals.ts';
import type { APIMessage } from '../../channel.ts';
import type { APIMessage } from '../../message.ts';
import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands.ts';
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper, APIUserInteractionDataResolved } from '../base.ts';
import type { APIBaseApplicationCommandInteractionData } from './internals.ts';

View File

@@ -1,14 +1,6 @@
import type { Permissions, Snowflake } from '../../../globals.ts';
import type { APIRole, ApplicationIntegrationType, InteractionContextType, Locale } from '../../../v9.ts';
import type {
APIAttachment,
APIChannel,
APIMessage,
APIPartialChannel,
APIThreadChannel,
ChannelType,
ThreadChannelType,
} from '../channel.ts';
import type { APIChannel, APIPartialChannel, APIThreadChannel, ChannelType, ThreadChannelType } from '../channel.ts';
import type {
APIBaseGuildMember,
APIFlaggedGuildMember,
@@ -17,6 +9,7 @@ import type {
APIGuildMemberJoined,
APIPartialInteractionGuild,
} from '../guild.ts';
import type { APIAttachment, APIMessage } from '../message.ts';
import type { APIEntitlement } from '../monetization.ts';
import type { APIUser } from '../user.ts';
import type { InteractionType } from './responses.ts';

View File

@@ -1,6 +1,6 @@
import type { Snowflake } from '../../../globals.ts';
import type { ComponentType } from '../channel.ts';
import type { APIBaseInteraction, InteractionType } from '../interactions.ts';
import type { ComponentType } from '../message.ts';
import type {
APIDMInteractionWrapper,
APIGuildInteractionWrapper,

View File

@@ -1,4 +1,3 @@
import type { APIBaseComponent } from '../channel.ts';
import type {
APIBaseInteraction,
APIDMInteractionWrapper,
@@ -7,6 +6,7 @@ import type {
ComponentType,
InteractionType,
} from '../mod.ts';
import type { APIBaseComponent } from '../message.ts';
export interface APIBaseModalSubmitComponent<T extends ComponentType> extends APIBaseComponent<T> {
type: T;

View File

@@ -4,7 +4,7 @@ import type {
APIComponentInModalActionRow,
APILabelComponent,
APITextDisplayComponent,
} from '../channel.ts';
} from '../message.ts';
import type { APIApplicationCommandOptionChoice } from './applicationCommands.ts';
/**

File diff suppressed because it is too large Load Diff

1781
deno/payloads/v9/message.ts generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -9,6 +9,7 @@ export * from './guild.ts';
export * from './guildScheduledEvent.ts';
export * from './interactions.ts';
export * from './invite.ts';
export * from './message.ts';
export * from './monetization.ts';
export * from './oauth2.ts';
export * from './permissions.ts';

View File

@@ -1,5 +1,5 @@
import type { Snowflake } from '../../../../globals';
import type { APIMessage } from '../../channel';
import type { APIMessage } from '../../message';
import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands';
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper, APIUserInteractionDataResolved } from '../base';
import type { APIBaseApplicationCommandInteractionData } from './internals';

View File

@@ -1,14 +1,6 @@
import type { Permissions, Snowflake } from '../../../globals';
import type { APIRole, ApplicationIntegrationType, InteractionContextType, Locale } from '../../../v10';
import type {
APIAttachment,
APIChannel,
APIMessage,
APIPartialChannel,
APIThreadChannel,
ChannelType,
ThreadChannelType,
} from '../channel';
import type { APIChannel, APIPartialChannel, APIThreadChannel, ChannelType, ThreadChannelType } from '../channel';
import type {
APIBaseGuildMember,
APIFlaggedGuildMember,
@@ -17,6 +9,7 @@ import type {
APIGuildMemberJoined,
APIPartialInteractionGuild,
} from '../guild';
import type { APIAttachment, APIMessage } from '../message';
import type { APIEntitlement } from '../monetization';
import type { APIUser } from '../user';
import type { InteractionType } from './responses';

View File

@@ -1,6 +1,6 @@
import type { Snowflake } from '../../../globals';
import type { ComponentType } from '../channel';
import type { APIBaseInteraction, InteractionType } from '../interactions';
import type { ComponentType } from '../message';
import type {
APIDMInteractionWrapper,
APIGuildInteractionWrapper,

View File

@@ -1,4 +1,3 @@
import type { APIBaseComponent } from '../channel';
import type {
APIBaseInteraction,
APIDMInteractionWrapper,
@@ -7,6 +6,7 @@ import type {
ComponentType,
InteractionType,
} from '../index';
import type { APIBaseComponent } from '../message';
export interface APIBaseModalSubmitComponent<T extends ComponentType> extends APIBaseComponent<T> {
type: T;

View File

@@ -4,7 +4,7 @@ import type {
APIComponentInModalActionRow,
APILabelComponent,
APITextDisplayComponent,
} from '../channel';
} from '../message';
import type { APIApplicationCommandOptionChoice } from './applicationCommands';
/**

File diff suppressed because it is too large Load Diff

View File

@@ -9,6 +9,7 @@ export * from './guild';
export * from './guildScheduledEvent';
export * from './interactions';
export * from './invite';
export * from './message';
export * from './monetization';
export * from './oauth2';
export * from './permissions';

1786
payloads/v10/message.ts Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
import type { Snowflake } from '../../../../globals';
import type { APIMessage } from '../../channel';
import type { APIMessage } from '../../message';
import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands';
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper, APIUserInteractionDataResolved } from '../base';
import type { APIBaseApplicationCommandInteractionData } from './internals';

View File

@@ -1,14 +1,6 @@
import type { Permissions, Snowflake } from '../../../globals';
import type { APIRole, ApplicationIntegrationType, InteractionContextType, Locale } from '../../../v9';
import type {
APIAttachment,
APIChannel,
APIMessage,
APIPartialChannel,
APIThreadChannel,
ChannelType,
ThreadChannelType,
} from '../channel';
import type { APIChannel, APIPartialChannel, APIThreadChannel, ChannelType, ThreadChannelType } from '../channel';
import type {
APIBaseGuildMember,
APIFlaggedGuildMember,
@@ -17,6 +9,7 @@ import type {
APIGuildMemberJoined,
APIPartialInteractionGuild,
} from '../guild';
import type { APIAttachment, APIMessage } from '../message';
import type { APIEntitlement } from '../monetization';
import type { APIUser } from '../user';
import type { InteractionType } from './responses';

View File

@@ -1,6 +1,6 @@
import type { Snowflake } from '../../../globals';
import type { ComponentType } from '../channel';
import type { APIBaseInteraction, InteractionType } from '../interactions';
import type { ComponentType } from '../message';
import type {
APIDMInteractionWrapper,
APIGuildInteractionWrapper,

View File

@@ -1,4 +1,3 @@
import type { APIBaseComponent } from '../channel';
import type {
APIBaseInteraction,
APIDMInteractionWrapper,
@@ -7,6 +6,7 @@ import type {
ComponentType,
InteractionType,
} from '../index';
import type { APIBaseComponent } from '../message';
export interface APIBaseModalSubmitComponent<T extends ComponentType> extends APIBaseComponent<T> {
type: T;

View File

@@ -4,7 +4,7 @@ import type {
APIComponentInModalActionRow,
APILabelComponent,
APITextDisplayComponent,
} from '../channel';
} from '../message';
import type { APIApplicationCommandOptionChoice } from './applicationCommands';
/**

File diff suppressed because it is too large Load Diff

View File

@@ -9,6 +9,7 @@ export * from './guild';
export * from './guildScheduledEvent';
export * from './interactions';
export * from './invite';
export * from './message';
export * from './monetization';
export * from './oauth2';
export * from './permissions';

1781
payloads/v9/message.ts Normal file

File diff suppressed because it is too large Load Diff