Skip to content

Commit

Permalink
refactor: split messages from channels
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx authored Aug 23, 2024
1 parent f019f0f commit 598f4be
Show file tree
Hide file tree
Showing 48 changed files with 6,608 additions and 6,580 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
13 changes: 3 additions & 10 deletions deno/payloads/v10/_interactions/base.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
import type { Permissions, Snowflake } from '../../../globals.ts';
import type { APIRole, ApplicationIntegrationType, InteractionContextType, LocaleString } 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 { APIGuildMember } 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';

/**
* https://discord.com/developers/docs/resources/channel#message-interaction-metadata-object
* https://discord.com/developers/docs/resources/message#message-interaction-metadata-object
*/
export interface APIMessageInteractionMetadata {
/**
Expand Down
2 changes: 1 addition & 1 deletion deno/payloads/v10/_interactions/messageComponents.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion deno/payloads/v10/_interactions/modalSubmit.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { APIActionRowComponent, APIModalActionRowComponent } from '../channel.ts';
import type {
APIBaseInteraction,
APIDMInteractionWrapper,
APIGuildInteractionWrapper,
ComponentType,
InteractionType,
} from '../mod.ts';
import type { APIActionRowComponent, APIModalActionRowComponent } from '../message.ts';

export interface ModalSubmitComponent {
type: ComponentType;
Expand Down
2 changes: 1 addition & 1 deletion deno/payloads/v10/_interactions/responses.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v10.ts';
import type { APIActionRowComponent, APIModalActionRowComponent } from '../channel.ts';
import type { MessageFlags } from '../mod.ts';
import type { APIActionRowComponent, APIModalActionRowComponent } from '../message.ts';
import type { APIApplicationCommandOptionChoice } from './applicationCommands.ts';

/**
Expand Down
Loading

0 comments on commit 598f4be

Please sign in to comment.