1-
2-
3- | ⚠ | This is an old version because there is a newer version available (v2.0) just click on the blue writing :3 |
4- | ---------------| :------------------------|
5-
6-
7- - [ v2.0] ( https://github.com/uwu-user/discord.js-slash-commands-v2 ) :3?
1+ v3.0 (2022/1/14)
82
93---
104
11- v1.0 (2021/8/10)
12-
135** Hi (ᴗ ω ᴗ)**
146
15- ** This is just a mixture of "Command handling" + " slash commands", Distinctively**
16- - ** in the easiest possible way =3**
7+ This is just an experiment for "slash commands" + "@discordjs/rest " in a simple way :3
178
18- ---
9+ ---
1910
2011<details >
2112<summary >
22- like that
13+ log Screenshot
2314</summary >
2415
2516<br >
2617
2718---
2819
29- Screenshot:
30-
31- <img src = " https://raw.githubusercontent.com/uwu-user/discord.js-slash-commands/main/assets/Screenshot.png " alt =" Screenshot " >
20+ <img src = " url " alt =" Screenshot " >
3221
3322</div >
3423</details >
@@ -37,27 +26,11 @@ Screenshot:
3726
3827** ❒ | if you need something » Unknown_ #7004**
3928
40- <details >
41- <summary >
42- So Why?
43- </summary >
44-
45- <br >
46-
47- ---
48-
49- - Logically, there is no reason for me to post this, except for several people who wanted me to post this, so "here we go again".
50-
51- - This is not important anyway
52-
53- </div >
54- </details >
55-
5629---
5730
5831<details >
5932<summary >
60- examples
33+ examples?
6134</summary >
6235
6336<br >
@@ -67,12 +40,15 @@ Screenshot:
6740Test:
6841
6942``` js
43+ const { SlashCommandBuilder } = require (" @discordjs/builders" );
44+ const data = new SlashCommandBuilder ()
45+ .setName (" " ) // [1] command Name
46+ .setDescription (" " ); // [2] command description
47+
7048module .exports = {
71- name: " " , // [1] command Name
72- description: " " , // [2] command description
73- global: false , // [3] Command (Guild/Global) (true = Global, flase = Guild)
74- options: null , // [4] command Options
75- async execute (client , interaction , args ) {
49+ global: false , // [3] Command (Guild/Global) (true = Global, flase = Guild)
50+ data: data, // cmd data*
51+ async execute (client , interaction ) {
7652 await interaction .reply ({ content: " " , ephemeral: true }); // [5] Command replay
7753 }
7854};
@@ -83,26 +59,6 @@ module.exports = {
8359
8460---
8561
86- <details >
87- <summary >
88- important information
89- </summary >
90-
91- <br >
92-
93- ---
94-
95- - Best to use discord.js v13 or later
96-
97- - It is better not to use node.js v12 or node.js v14, but rather use node.js v16.6.1 because you will not have any problems
98-
99- - It is recommended to use the latest version of npm (v7.20.3) or later
100-
101- </div >
102- </details >
103-
104- ---
105-
10662<details >
10763<summary >
10864 Install bot
@@ -116,26 +72,10 @@ module.exports = {
11672npm install request
11773```
11874
119- ``` sh-session
120- npm install fs
121- ```
122-
12375``` sh-session
12476npm install discord.js
12577```
12678
127- ``` sh-session
128- npm install express
129- ```
130-
131- ``` sh-session
132- npm install node
133- ```
134-
135- ``` sh-session
136- npm install npm
137- ```
138-
13979``` sh-session
14080npm install os
14181```
@@ -147,3 +87,5 @@ npm install ascii-table
14787</details >
14888
14989---
90+
91+ bye :3?
0 commit comments