mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-11-22 14:41:05 +01:00
feat(ping): ephemeral flags
This commit is contained in:
parent
4d5f6f0704
commit
c310a8ca42
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { InteractionResponseType } from 'discord-api-types/v10';
|
import { InteractionResponseType, MessageFlags } from 'discord-api-types/v10';
|
||||||
import { Command } from '../structures/Command';
|
import { Command } from '../structures/Command';
|
||||||
|
|
||||||
new Command({
|
new Command({
|
||||||
|
@ -8,7 +8,8 @@ new Command({
|
||||||
return ctx.respond({
|
return ctx.respond({
|
||||||
type: InteractionResponseType.ChannelMessageWithSource,
|
type: InteractionResponseType.ChannelMessageWithSource,
|
||||||
data: {
|
data: {
|
||||||
content: 'Pong 🏓'
|
content: 'Pong 🏓',
|
||||||
|
flags: MessageFlags.Ephemeral,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue