File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments