Nightro-Fx
Nightro-Fx
DIAdiscord.js - Imagine an app
Created by QuackVanguard on 10/25/2023 in #djs-questions
what is the problem
@SeDuckTive You can go to Discord.js's github and get a few stater projects
17 replies
DIAdiscord.js - Imagine an app
Created by Nerf on 10/30/2023 in #djs-questions
Status
(you can change from bot to client depending on how you define your bot)
8 replies
DIAdiscord.js - Imagine an app
Created by Nerf on 10/30/2023 in #djs-questions
Status
@Qjuh
const {ActivityType} = require('discord.js')
bot.once('ready', async (bot) => {
bot.user.setPresence({ activities: [{
name: `Fortnite`,
type: ActivityType.Playing
}],
status: `online` });
})
const {ActivityType} = require('discord.js')
bot.once('ready', async (bot) => {
bot.user.setPresence({ activities: [{
name: `Fortnite`,
type: ActivityType.Playing
}],
status: `online` });
})
8 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 11/15/2023 in #djs-questions
Can large files cause abortion errors?
Oh are you trying to send that png to a specific server?
6 replies
DIAdiscord.js - Imagine an app
Created by Erin on 7/20/2022 in #djs-questions
help.js file not working - not interaction
oh i see... my bad
6 replies
DIAdiscord.js - Imagine an app
Created by Erin on 7/20/2022 in #djs-questions
help.js file not working - not interaction
Idk, Cause nobody replied to it ig?
6 replies
DIAdiscord.js - Imagine an app
Created by ghehusbcbrhjrjxnnxnnxnx on 7/2/2023 in #djs-questions
ReferenceError: interaction is not defined
@Dinnerfork Ik this is kina late but... did it get solved in the end?
56 replies
DIAdiscord.js - Imagine an app
Created by Erin on 7/20/2022 in #djs-questions
help.js file not working - not interaction
hmmm... I didn't quite get that
6 replies
DIAdiscord.js - Imagine an app
Created by Nightro-Fx on 11/10/2023 in #djs-questions
interaction is not defined
Solution: - In message.js
const { EmbedBuilder } = require('discord.js');


function errorMessage(interaction, message) {
const reply = new EmbedBuilder()
.setColor('Red')
.setDescription(message);
return interaction.reply({embeds: [reply]});
}

module.exports = errorMessage
const { EmbedBuilder } = require('discord.js');


function errorMessage(interaction, message) {
const reply = new EmbedBuilder()
.setColor('Red')
.setDescription(message);
return interaction.reply({embeds: [reply]});
}

module.exports = errorMessage
- In your desired file
let errorMessage = require('./path-to-your-function-file')
errorMessage(interaction,"I have an Error!")
let errorMessage = require('./path-to-your-function-file')
errorMessage(interaction,"I have an Error!")
12 replies
DIAdiscord.js - Imagine an app
Created by Nightro-Fx on 11/10/2023 in #djs-questions
interaction is not defined
@-Carlos👑 OH it worked Tysm
12 replies
DIAdiscord.js - Imagine an app
Created by Nightro-Fx on 11/10/2023 in #djs-questions
interaction is not defined
Like this?
12 replies
DIAdiscord.js - Imagine an app
Created by Nightro-Fx on 11/10/2023 in #djs-questions
interaction is not defined
function errorMessage(interaction, message) {
const reply = new EmbedBuilder()
.setColor('Red')
.setDescription(message);
return interaction.reply({embeds: [reply]});
}
function errorMessage(interaction, message) {
const reply = new EmbedBuilder()
.setColor('Red')
.setDescription(message);
return interaction.reply({embeds: [reply]});
}
12 replies
DIAdiscord.js - Imagine an app
Created by Nightro-Fx on 11/10/2023 in #djs-questions
interaction is not defined
I know but how do I define it...
12 replies
DIAdiscord.js - Imagine an app
Created by Nightro-Fx on 10/31/2023 in #djs-questions
How to make a filter?
I just defined the author by interaction.user.id right when the author requests the buttons and compare it when the button is clicked
24 replies