Skip to content

Commit

Permalink
refactor: simplify InteractionResponse types
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Smart committed Dec 7, 2022
1 parent 05e54cb commit d7bdaaf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Interactions/definitions.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
export type InteractionResponse =
| {
type: Discord.InteractionCallbackType.CHANNEL_MESSAGE_WITH_SOURCE
type: 4
data: Discord.InteractionCallbackMessage
}
| {
type: Discord.InteractionCallbackType.UPDATE_MESSAGE
type: 7
data: Discord.InteractionCallbackMessage
}
| {
type: Discord.InteractionCallbackType.MODAL
type: 9
data: Discord.InteractionCallbackModal
}
| {
type: Discord.InteractionCallbackType.DEFERRED_UPDATE_MESSAGE
type: 6
}
| {
type: Discord.InteractionCallbackType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE
type: 5
}
| {
type: Discord.InteractionCallbackType.APPLICATION_COMMAND_AUTOCOMPLETE_RESULT
type: 8
data: Discord.InteractionCallbackAutocomplete
}

Expand Down

0 comments on commit d7bdaaf

Please sign in to comment.