Skip to content

Commit

Permalink
types: make MessageTarget extend on TextBasedChannels (#6296)
Browse files Browse the repository at this point in the history
@kyranet and I found the bug when updating @skyra/editable-commands
when our custom function that accepted an argument of `MessageTarget`
was suddenly no longer accepting `message.channel`. Turns out it was
because of a mistake @kyranet made lulz
  • Loading branch information
favna authored Aug 4, 2021
1 parent 90c2e07 commit 5b0621f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4101,10 +4101,7 @@ export interface MessageSelectOptionData {
export type MessageTarget =
| Interaction
| InteractionWebhook
| TextChannel
| NewsChannel
| ThreadChannel
| DMChannel
| TextBasedChannels
| User
| GuildMember
| Webhook
Expand Down

0 comments on commit 5b0621f

Please sign in to comment.