File tree Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 1
- $ ~
1
+ const { SlashCommandBuilder } = require ( "@discordjs/builders" ) ;
2
+ const data = new SlashCommandBuilder ( )
3
+ . setName ( "say" )
4
+ . setDescription ( "say cmd :3" )
5
+ . addStringOption ( option =>
6
+ option
7
+ . setName ( "text" )
8
+ . setDescription ( "write something =3" )
9
+ . setRequired ( true )
10
+ ) ;
11
+
12
+ module . exports = {
13
+ global : false ,
14
+ data : data ,
15
+ async execute ( client , interaction ) {
16
+ let msg = interaction . options . _hoistedOptions [ 0 ] . value ;
17
+ await interaction . reply ( { content : msg , ephemeral : true } ) ;
18
+ }
19
+ } ;
Original file line number Diff line number Diff line change
1
+ const { SlashCommandBuilder } = require ( "@discordjs/builders" ) ;
2
+ const { MessageEmbed } = require ( "discord.js" ) ;
3
+ const data = new SlashCommandBuilder ( )
4
+ . setName ( "sayembed" )
5
+ . setDescription ( "say Embed cmd :3" )
6
+ . addStringOption ( option =>
7
+ option
8
+ . setName ( "text" )
9
+ . setDescription ( "write something =3" )
10
+ . setRequired ( true )
11
+ ) ;
12
+
13
+ module . exports = {
14
+ global : false ,
15
+ data : data ,
16
+ async execute ( client , interaction ) {
17
+ let msg = interaction . options . _hoistedOptions [ 0 ] . value ;
18
+ let Embed = new MessageEmbed ( ) . setDescription ( msg ) ;
19
+ await interaction . reply ( { embeds : [ Embed ] , ephemeral : true } ) ;
20
+ }
21
+ } ;
You can’t perform that action at this time.
0 commit comments