Skip to content

Commit

Permalink
🩹 fix: deferred messages are also messages
Browse files Browse the repository at this point in the history
closes #318
  • Loading branch information
Helloyunho committed Jan 9, 2023
1 parent 8b4a234 commit 681fa28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/structures/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ function isResponseMessage(
return (
response.type === undefined ||
response.type === InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE ||
response.type === InteractionResponseType.UPDATE_MESSAGE
response.type === InteractionResponseType.UPDATE_MESSAGE ||
response.type === InteractionResponseType.DEFERRED_CHANNEL_MESSAGE ||
response.type === InteractionResponseType.DEFERRED_MESSAGE_UPDATE
)
}

Expand Down

0 comments on commit 681fa28

Please sign in to comment.