Hamster ʚїɞ
Hamster ʚїɞ
DIAdiscord.js - Imagine an app
Created by Hamster ʚїɞ on 9/24/2023 in #djs-questions
Process exited with code 1
waveBoye Hello! I have a tiny problem, I'm not sure If It's much of a problem tho. I can still run my coding and my Discord bot turns on, I'm just curious on what this Is about and how to properly solve this tiny Issue. I've been following the step-by-step things to do In the Discord.js guide website. I've came across this coding:
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('server')
.setDescription('Provides information about the server.'),
async execute(interaction) {
// interaction.guild is the object representing the Guild in which the command was run
await interaction.reply(`This server is ${interaction.guild.name} and has ${interaction.guild.memberCount} members.`);
},
};
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('server')
.setDescription('Provides information about the server.'),
async execute(interaction) {
// interaction.guild is the object representing the Guild in which the command was run
await interaction.reply(`This server is ${interaction.guild.name} and has ${interaction.guild.memberCount} members.`);
},
};
I copied and pasted this Into my coding and edited In my own way. I've properly made the folder and file for this Slash Command:
// These are all of the Imports >>
const {SlashCommandBuilder} = require('discord.js');


// This Is the "Server" Slash Command >>
module.exports = {
data: new SlashCommandBuilder()
.setName('server')
.setDescription('Provides information about the server.'),
async execute(interaction) {
await interaction.reply(`This server is ${interaction.guild.name} and has ${interaction.guild.memberCount} members.`);
},
};
// These are all of the Imports >>
const {SlashCommandBuilder} = require('discord.js');


// This Is the "Server" Slash Command >>
module.exports = {
data: new SlashCommandBuilder()
.setName('server')
.setDescription('Provides information about the server.'),
async execute(interaction) {
await interaction.reply(`This server is ${interaction.guild.name} and has ${interaction.guild.memberCount} members.`);
},
};
After I've ran these lines of coding, It gave me the "Process exited with code 1". Again, I can still run my code and my Discord bot turns on, I've just curious on what this means and how to properly solve this tiny Issue.
4 replies