This commit is contained in:
DjDeveloperr 2021-04-08 15:29:31 +05:30
parent 8d18f6b1ab
commit 758db4cfb2

View file

@ -177,8 +177,7 @@ export class Interaction extends SnowflakeBase {
type: data.type ?? InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE,
data:
data.type === undefined ||
data.type === InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE ||
data.type === InteractionResponseType.CHANNEL_MESSAGE
data.type === InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE
? {
content: data.content ?? '',
embeds: data.embeds,