Skip to content

Commit 381e98b

Browse files
committed
Typescript Remake
1 parent 209bdf5 commit 381e98b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/ping.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ export const pingcommand: Command = {
99
.setDescription("Check command's ping status!")
1010
.addStringOption((option): SlashCommandStringOption => {
1111
return option
12-
.setName("ispublic")
13-
.setDescription("Yes if you want to make question and response as public. Default is No")
12+
.setName("private")
13+
.setDescription("Yes if you want to make question and response as public. Default is Yes")
1414
.setRequired(false)
1515
.addChoices(
1616
{ name: 'Yes', value: 'Yes' },
1717
{ name: 'No', value: 'No' }
1818
)
1919
}),
2020
run: async (client: DiscordCustomClient, interaction: CommandInteraction) => {
21-
const ephemeral = interaction.options.get('ispublic')?.value === 'Yes' ? false : true
21+
const ephemeral = interaction.options.get('private')?.value === 'Yes'
2222
await interaction.reply({
2323
content: `🏓 Pong! My latency status is ${client.ws.ping}ms!`,
2424
ephemeral

0 commit comments

Comments
 (0)