Skip to content

Commit 598f4be

Browse files
authored
refactor: split messages from channels
1 parent f019f0f commit 598f4be

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+6608
-6580
lines changed

deno/payloads/v10/_interactions/_applicationCommands/contextMenu.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Snowflake } from '../../../../globals.ts';
2-
import type { APIMessage } from '../../channel.ts';
2+
import type { APIMessage } from '../../message.ts';
33
import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands.ts';
44
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper, APIUserInteractionDataResolved } from '../base.ts';
55
import type { APIBaseApplicationCommandInteractionData } from './internals.ts';

deno/payloads/v10/_interactions/base.ts

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
import type { Permissions, Snowflake } from '../../../globals.ts';
22
import type { APIRole, ApplicationIntegrationType, InteractionContextType, LocaleString } from '../../../v10.ts';
3-
import type {
4-
APIAttachment,
5-
APIChannel,
6-
APIMessage,
7-
APIPartialChannel,
8-
APIThreadChannel,
9-
ChannelType,
10-
ThreadChannelType,
11-
} from '../channel.ts';
3+
import type { APIChannel, APIPartialChannel, APIThreadChannel, ChannelType, ThreadChannelType } from '../channel.ts';
124
import type { APIGuildMember } from '../guild.ts';
5+
import type { APIAttachment, APIMessage } from '../message.ts';
136
import type { APIEntitlement } from '../monetization.ts';
147
import type { APIUser } from '../user.ts';
158
import type { InteractionType } from './responses.ts';
169

1710
/**
18-
* https://discord.com/developers/docs/resources/channel#message-interaction-metadata-object
11+
* https://discord.com/developers/docs/resources/message#message-interaction-metadata-object
1912
*/
2013
export interface APIMessageInteractionMetadata {
2114
/**

deno/payloads/v10/_interactions/messageComponents.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Snowflake } from '../../../globals.ts';
2-
import type { ComponentType } from '../channel.ts';
32
import type { APIBaseInteraction, InteractionType } from '../interactions.ts';
3+
import type { ComponentType } from '../message.ts';
44
import type {
55
APIDMInteractionWrapper,
66
APIGuildInteractionWrapper,

deno/payloads/v10/_interactions/modalSubmit.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import type { APIActionRowComponent, APIModalActionRowComponent } from '../channel.ts';
21
import type {
32
APIBaseInteraction,
43
APIDMInteractionWrapper,
54
APIGuildInteractionWrapper,
65
ComponentType,
76
InteractionType,
87
} from '../mod.ts';
8+
import type { APIActionRowComponent, APIModalActionRowComponent } from '../message.ts';
99

1010
export interface ModalSubmitComponent {
1111
type: ComponentType;

deno/payloads/v10/_interactions/responses.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v10.ts';
2-
import type { APIActionRowComponent, APIModalActionRowComponent } from '../channel.ts';
32
import type { MessageFlags } from '../mod.ts';
3+
import type { APIActionRowComponent, APIModalActionRowComponent } from '../message.ts';
44
import type { APIApplicationCommandOptionChoice } from './applicationCommands.ts';
55

66
/**

0 commit comments

Comments
 (0)