Skip to content

Commit

Permalink
flags: MessageFlags.Ephemeral,
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasbnt committed Jan 6, 2025
1 parent 1e78faa commit 3653b86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions commands/bord.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const {
EmbedBuilder,
ActionRowBuilder,
ButtonBuilder,
ButtonStyle
ButtonStyle,
MessageFlags
} = require('discord.js')
const config = require('../config.json')
module.exports = {
Expand Down Expand Up @@ -40,7 +41,7 @@ module.exports = {
interaction.reply({
embeds: [BordEmbed],
components: [ButtonsBord],
ephemeral: true
flags: MessageFlags.Ephemeral,
})
}
}
6 changes: 3 additions & 3 deletions commands/ping.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { EmbedBuilder } = require('discord.js')
const { EmbedBuilder, MessageFlags } = require('discord.js')
module.exports = {
data: {
name: 'ping',
Expand All @@ -14,7 +14,7 @@ module.exports = {
const sent = await interaction.reply({
embeds: [PingBeforeEmbed],
fetchReply: true,
ephemeral: true
flags: MessageFlags.Ephemeral,
})
const TotalPing = sent.createdTimestamp - interaction.createdTimestamp
const PingEmbed = new EmbedBuilder()
Expand All @@ -41,7 +41,7 @@ module.exports = {
: PingEmbed.setColor(client.config.colors.SuccessColor)
await interaction.editReply({
embeds: [PingEmbed],
ephemeral: true
flags: MessageFlags.Ephemeral,
})
}
}

0 comments on commit 3653b86

Please sign in to comment.