mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
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:
5
typings/index.d.ts
vendored
5
typings/index.d.ts
vendored
@@ -4101,10 +4101,7 @@ export interface MessageSelectOptionData {
|
|||||||
export type MessageTarget =
|
export type MessageTarget =
|
||||||
| Interaction
|
| Interaction
|
||||||
| InteractionWebhook
|
| InteractionWebhook
|
||||||
| TextChannel
|
| TextBasedChannels
|
||||||
| NewsChannel
|
|
||||||
| ThreadChannel
|
|
||||||
| DMChannel
|
|
||||||
| User
|
| User
|
||||||
| GuildMember
|
| GuildMember
|
||||||
| Webhook
|
| Webhook
|
||||||
|
|||||||
Reference in New Issue
Block a user