snowyv4
snowyv4
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/29/2024 in #djs-questions
Getting "ValidationError > s.string Expected a string primitive.
anyway, thanks.
9 replies
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/29/2024 in #djs-questions
Getting "ValidationError > s.string Expected a string primitive.
the values were infact not a string.
9 replies
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/29/2024 in #djs-questions
Getting "ValidationError > s.string Expected a string primitive.
I feel dumb it was that.
9 replies
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/29/2024 in #djs-questions
Getting "ValidationError > s.string Expected a string primitive.
I don't see a difference 😭
9 replies
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/29/2024 in #djs-questions
Getting "ValidationError > s.string Expected a string primitive.
This is litteraly what i'm doing, is it not?
9 replies
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/29/2024 in #djs-questions
Getting "ValidationError > s.string Expected a string primitive.
It says its coming from my .addFields but 0 clue
9 replies
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/12/2024 in #djs-questions
For some reason my collecter won't work?
It isnt even replying to the interaction so I have reason to believe its my collector, but like I said 0 clue.
5 replies
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/12/2024 in #djs-questions
For some reason my collecter won't work?
5 replies
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/11/2024 in #djs-questions
Getting: Invalid bitfield flag or number: VIEW_CHANNEL. (creating a text channel)
Thanks.
5 replies
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/11/2024 in #djs-questions
Getting: Invalid bitfield flag or number: VIEW_CHANNEL. (creating a text channel)
Ah, it's ViewChannel.
5 replies
DIAdiscord.js - Imagine an app
Created by Marion Maréchal on 2/11/2024 in #djs-questions
slash commands
client.on('interactionCreate', (interaction) => {
if(!interaction.isChatInputCommand()) return
if(interaction.commandName==='example) {
console.log('cmd done')
}})
client.on('interactionCreate', (interaction) => {
if(!interaction.isChatInputCommand()) return
if(interaction.commandName==='example) {
console.log('cmd done')
}})
18 replies
DIAdiscord.js - Imagine an app
Created by Marion Maréchal on 2/11/2024 in #djs-questions
slash commands
client.on('ready', (c) => {
const command = new SlashCommandBuilder()
.setName('example')
.setDescription("example cmd")
client.application.commands.create(command)
});
client.on('ready', (c) => {
const command = new SlashCommandBuilder()
.setName('example')
.setDescription("example cmd")
client.application.commands.create(command)
});
18 replies
DIAdiscord.js - Imagine an app
Created by Marion Maréchal on 2/11/2024 in #djs-questions
slash commands
you have to register your slash command.
18 replies
DIAdiscord.js - Imagine an app
Created by Marion Maréchal on 2/11/2024 in #djs-questions
slash commands
thats the right one.
18 replies
DIAdiscord.js - Imagine an app
Created by Marion Maréchal on 2/11/2024 in #djs-questions
slash commands
forgot to hide 😭
18 replies
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/7/2024 in #djs-questions
Cannot read properties of undefined (reading 'FLAGS')
thanks
6 replies
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/7/2024 in #djs-questions
Cannot read properties of undefined (reading 'FLAGS')
nevermind, its: npm install discord.js@13.17.1
6 replies
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/7/2024 in #djs-questions
Cannot read properties of undefined (reading 'FLAGS')
whats the command for this?
6 replies
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/7/2024 in #djs-questions
Cannot read properties of undefined (reading 'FLAGS')
code:
const client = new Discord.Client({
//fetchAllMembers: false,
//restTimeOffset: 0,
//restWsBridgetimeout: 100,
shards: "auto",
allowedMentions: {
parse: ["roles", "users", "everyone"],
repliedUser: true,
},
partials: ['MESSAGE', 'CHANNEL', 'REACTION'],
intents: [
Discord.Intents.FLAGS.GUILDS,
Discord.Intents.FLAGS.GUILD_MEMBERS,
Discord.Intents.FLAGS.GUILD_BANS,
Discord.Intents.FLAGS.GUILD_EMOJIS_AND_STICKERS,
Discord.Intents.FLAGS.GUILD_INTEGRATIONS,
Discord.Intents.FLAGS.GUILD_WEBHOOKS,
Discord.Intents.FLAGS.GUILD_INVITES,
Discord.Intents.FLAGS.GUILD_VOICE_STATES,
Discord.Intents.FLAGS.GUILD_PRESENCES,
Discord.Intents.FLAGS.GUILD_MESSAGES,
Discord.Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
Discord.Intents.FLAGS.GUILD_MESSAGE_TYPING,
Discord.Intents.FLAGS.DIRECT_MESSAGES,
Discord.Intents.FLAGS.DIRECT_MESSAGE_REACTIONS,
Discord.Intents.FLAGS.DIRECT_MESSAGE_TYPING
],
presence: {
activity: {
name: `Music`,
type: "LISTENING",
},
status: "online"
}
});
const client = new Discord.Client({
//fetchAllMembers: false,
//restTimeOffset: 0,
//restWsBridgetimeout: 100,
shards: "auto",
allowedMentions: {
parse: ["roles", "users", "everyone"],
repliedUser: true,
},
partials: ['MESSAGE', 'CHANNEL', 'REACTION'],
intents: [
Discord.Intents.FLAGS.GUILDS,
Discord.Intents.FLAGS.GUILD_MEMBERS,
Discord.Intents.FLAGS.GUILD_BANS,
Discord.Intents.FLAGS.GUILD_EMOJIS_AND_STICKERS,
Discord.Intents.FLAGS.GUILD_INTEGRATIONS,
Discord.Intents.FLAGS.GUILD_WEBHOOKS,
Discord.Intents.FLAGS.GUILD_INVITES,
Discord.Intents.FLAGS.GUILD_VOICE_STATES,
Discord.Intents.FLAGS.GUILD_PRESENCES,
Discord.Intents.FLAGS.GUILD_MESSAGES,
Discord.Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
Discord.Intents.FLAGS.GUILD_MESSAGE_TYPING,
Discord.Intents.FLAGS.DIRECT_MESSAGES,
Discord.Intents.FLAGS.DIRECT_MESSAGE_REACTIONS,
Discord.Intents.FLAGS.DIRECT_MESSAGE_TYPING
],
presence: {
activity: {
name: `Music`,
type: "LISTENING",
},
status: "online"
}
});
6 replies
DIAdiscord.js - Imagine an app
Created by snowyv4 on 2/3/2024 in #djs-questions
Attempting to fetch users custom status!
alr bro ill just chat gpt it
17 replies