Skip to content

Commit

Permalink
fix(APIMessage): document Interaction as valid MessageTarget (#5678)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceEEC committed May 27, 2021
1 parent 840ad0a commit 9f491ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/structures/APIMessage.js
Expand Up @@ -378,7 +378,7 @@ module.exports = APIMessage;

/**
* A target for a message.
* @typedef {TextChannel|DMChannel|User|GuildMember|Webhook|WebhookClient} MessageTarget
* @typedef {TextChannel|DMChannel|User|GuildMember|Webhook|WebhookClient|Interaction} MessageTarget
*/

/**
Expand Down
10 changes: 9 additions & 1 deletion typings/index.d.ts
Expand Up @@ -3268,7 +3268,15 @@ declare module 'discord.js' {

type MessageResolvable = Message | Snowflake;

type MessageTarget = TextChannel | NewsChannel | DMChannel | User | GuildMember | Webhook | WebhookClient;
type MessageTarget =
| Interaction
| TextChannel
| NewsChannel
| DMChannel
| User
| GuildMember
| Webhook
| WebhookClient;

type MessageType =
| 'DEFAULT'
Expand Down

0 comments on commit 9f491ff

Please sign in to comment.