This commit is contained in:
@@ -709,6 +709,8 @@ function discordCmdReplyPayload(result) {
|
||||
if (result && result.text) payload.content = discordCmdClip(result.text)
|
||||
if (!payload.content && !payload.embeds) payload.content = '(no output)'
|
||||
if (result && result.ephemeral) payload.flags = BARE_OS_DISCORD_FLAG_EPHEMERAL
|
||||
delete payload.fetchReply
|
||||
delete payload.ephemeral
|
||||
return payload
|
||||
}
|
||||
|
||||
@@ -5183,9 +5185,9 @@ async function discordSendResult(ctx, interaction, result) {
|
||||
} else if (interaction.deferred && typeof interaction.editReply === 'function') {
|
||||
sent = await interaction.editReply(payload)
|
||||
} else if (interaction.replied && typeof interaction.followUp === 'function') {
|
||||
sent = await interaction.followUp(Object.assign({ fetchReply: true }, payload))
|
||||
sent = await interaction.followUp(payload)
|
||||
} else {
|
||||
sent = await interaction.reply(Object.assign({ fetchReply: true }, payload))
|
||||
sent = await interaction.reply(payload)
|
||||
}
|
||||
} catch (err) {
|
||||
if (ctx && ctx.console && typeof ctx.console.error === 'function') {
|
||||
|
||||
Reference in New Issue
Block a user