11 lines
No EOL
392 B
JavaScript
11 lines
No EOL
392 B
JavaScript
module.exports = {
|
|
name: "log",
|
|
type: "MESSAGE",
|
|
run: async(client, interaction, container) => {
|
|
console.log(interaction.channel.messages.cache.get(interaction.targetId) ?? await interaction.channel.messages.fetch(interaction.targetId))
|
|
interaction.reply({
|
|
content: "Logged message to console.",
|
|
ephemeral: true
|
|
})
|
|
}
|
|
} |