Skip to content

Commit 70642de

Browse files
authored
fix(structures/Interaction): isResponseMessage should be true when type is undefined
1 parent cc1cc51 commit 70642de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/structures/interactions.ts

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ function isResponseMessage(
8787
response: InteractionResponse
8888
): response is InteractionMessageOptions & BaseInteractionResponse {
8989
return (
90+
response.type === undefined ||
9091
response.type === InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE ||
9192
response.type === InteractionResponseType.UPDATE_MESSAGE
9293
)

0 commit comments

Comments
 (0)