File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
bot/interactions/textcommands Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- const { ChildProcess } = require ( "child_process" ) ;
1+ const { exec } = require ( "child_process" ) ;
22const TextCommand = require ( "../../../structures/base/BaseTextCommand" ) ;
33const { EmbedBuilder } = require ( "discord.js" ) ;
44
@@ -24,7 +24,7 @@ class ExecCommand extends TextCommand {
2424
2525 const hrStart = process . hrtime ( ) ;
2626
27- ChildProcess . exec ( args . join ( " " ) , ( error , stdout ) => {
27+ exec ( args . join ( " " ) , ( error , stdout ) => {
2828
2929 const hrDiff = process . hrtime ( hrStart ) ;
3030
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class InteractionHandler {
4242
4343 } ) ;
4444
45- readdir ( ` ./bot/interactions/components/` , ( err , files ) => {
45+ readdir ( " ./bot/interactions/components/" , ( err , files ) => {
4646
4747 const cmdFiles = files . filter ( f => f . split ( "." ) . pop ( ) === "js" ) ;
4848
You can’t perform that action at this time.
0 commit comments