File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- const { Client, Intents } = require ( "discord.js" ) ;
1+ const { Client, IntentsBitField , ApplicationCommandOptionType } = require ( "discord.js" ) ;
22const { PasteClient, Publicity, ExpireDate } = require ( "pastebin-api" ) ;
33
4- const bot = new Client ( { intents : [ Intents . FLAGS . GUILDS ] } ) ;
4+ const bot = new Client ( { intents : [ IntentsBitField . Flags . Guilds ] } ) ;
55const pasteClient = new PasteClient ( "DEV_API_KEY" ) ;
66
77bot . on ( "interactionCreate" , async ( interaction ) => {
@@ -33,16 +33,16 @@ bot.on("ready", async () => {
3333 name : "code" ,
3434 required : true ,
3535 description : "This will be the paste code" ,
36- type : "STRING" ,
36+ type : ApplicationCommandOptionType . String ,
3737 } ,
3838 {
3939 name : "name" ,
4040 required : false ,
4141 description : "This will be the name of the paste" ,
42- type : "STRING" ,
42+ type : ApplicationCommandOptionType . String ,
4343 } ,
4444 {
45- type : "STRING" ,
45+ type : ApplicationCommandOptionType . String ,
4646 name : "expire-date" ,
4747 required : false ,
4848 description : "When the paste will expire" ,
@@ -89,4 +89,4 @@ bot.on("ready", async () => {
8989 console . log ( "Bot is ready!" ) ;
9090} ) ;
9191
92- bot . login ( "BOT_TOKEN " ) ;
92+ bot . login ( "NzMwMzk0NTQwNjE5MzMzNzEy.GdwEWQ.67SPQDKUO2fFF_IF_mL1E_vrH6m2vhXFp_yawQ " ) ;
Original file line number Diff line number Diff line change 77 "start" : " node bot.js"
88 },
99 "dependencies" : {
10- "discord.js" : " ^13.6.0 " ,
11- "pastebin-api" : " ^4.0.0 "
10+ "discord.js" : " ^14.1.2 " ,
11+ "pastebin-api" : " latest "
1212 }
1313}
You can’t perform that action at this time.
0 commit comments