types: make MessageTarget extend on TextBasedChannels (#6296)

@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
This commit is contained in:
Jeroen Claassens
2021-08-04 22:33:03 +02:00
committed by GitHub
parent 90c2e072bf
commit 5b0621fb3a

5
typings/index.d.ts vendored
View File

@@ -4101,10 +4101,7 @@ export interface MessageSelectOptionData {
export type MessageTarget =
| Interaction
| InteractionWebhook
| TextChannel
| NewsChannel
| ThreadChannel
| DMChannel
| TextBasedChannels
| User
| GuildMember
| Webhook