console.log('deferring response...')
const deferResponse = await fetch(RouteBases.api + Routes.interactionCallback(interaction.id, interaction.token), {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
type: InteractionResponseType.DeferredChannelMessageWithSource
} satisfies APIInteractionResponse)
})
console.log('deferred')
console.log('deferring response...')
const deferResponse = await fetch(RouteBases.api + Routes.interactionCallback(interaction.id, interaction.token), {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
type: InteractionResponseType.DeferredChannelMessageWithSource
} satisfies APIInteractionResponse)
})
console.log('deferred')