Erin
Erin
DIAdiscord.js - Imagine an app
Created by Erin on 6/24/2023 in #djs-questions
Is there a way to make global app commands (/) only work via DMs?
Alright I’ll try that
18 replies
DIAdiscord.js - Imagine an app
Created by Erin on 6/24/2023 in #djs-questions
Is there a way to make global app commands (/) only work via DMs?
I’m trying to make it so only the ping and invite commands can be used in guilds where other global application commands can only be used in DMs. https://github.com/DudeThatsErin/Omnivore-Bot/blob/main/index.js this is my entire index.js file. Bot is going to be open source.
18 replies
DIAdiscord.js - Imagine an app
Created by Erin on 6/24/2023 in #djs-questions
Is there a way to make global app commands (/) only work via DMs?
ping me whenever someone has an idea. thanks in advance.
18 replies
DIAdiscord.js - Imagine an app
Created by Erin on 6/24/2023 in #djs-questions
Is there a way to make global app commands (/) only work via DMs?
Yes
18 replies
DIAdiscord.js - Imagine an app
Created by Erin on 6/24/2023 in #djs-questions
Is there a way to make global app commands (/) only work via DMs?
That is all of my slash commands that I only want to be run in DMs
18 replies
DIAdiscord.js - Imagine an app
Created by Erin on 6/24/2023 in #djs-questions
Is there a way to make global app commands (/) only work via DMs?
I removed that and attempted again and same thing.
18 replies
DIAdiscord.js - Imagine an app
Created by Erin on 6/24/2023 in #djs-questions
Is there a way to make global app commands (/) only work via DMs?
These would be the only 2 commands.
18 replies
DIAdiscord.js - Imagine an app
Created by Erin on 6/24/2023 in #djs-questions
Is there a way to make global app commands (/) only work via DMs?
If I wanted to exclude 2 commands from only being able to run via DMs (meaning they can be ran in a guild) this would be the correct code, right?
if (dmCommand.commandName != 'invite' && dmCommand.commandName != 'ping' && dmCommand) return interaction.reply('This command can only be ran in DMs.');
if (dmCommand.commandName != 'invite' && dmCommand.commandName != 'ping' && dmCommand) return interaction.reply('This command can only be ran in DMs.');
Cause it is not working. I tried running /ping and it is still saying that the command can only be ran via DMs.
18 replies
DIAdiscord.js - Imagine an app
Created by Erin on 6/24/2023 in #djs-questions
Is there a way to make global app commands (/) only work via DMs?
Alright ty
18 replies
DIAdiscord.js - Imagine an app
Created by Erin on 4/5/2023 in #djs-questions
Is it not possible to use a boolean with a user option?
Oh, DUH
3 replies
DIAdiscord.js - Imagine an app
Created by Erin on 11/22/2022 in #djs-questions
What do I have to do to store how many upvotes and downvotes people have?
That makes sense. Partial worked. Thank you
12 replies
DIAdiscord.js - Imagine an app
Created by Erin on 11/22/2022 in #djs-questions
What do I have to do to store how many upvotes and downvotes people have?
Still doesn't log.
12 replies
DIAdiscord.js - Imagine an app
Created by Erin on 11/22/2022 in #djs-questions
What do I have to do to store how many upvotes and downvotes people have?
module.exports = {
name: 'messageReactionAdd',
async execute(messageReaction, user) {
console.log(messageReaction)
}
}
module.exports = {
name: 'messageReactionAdd',
async execute(messageReaction, user) {
console.log(messageReaction)
}
}
|-----------------------------------|
Loading Event Files...
|-----------------------------------|
interactionCreate loaded successfully!
messageCreate loaded successfully!
messageReactionAdd loaded successfully!
messageReactionRemove loaded successfully!
ready loaded successfully!
|-----------------------------------|
|-----------------------------------|
Loading Event Files...
|-----------------------------------|
interactionCreate loaded successfully!
messageCreate loaded successfully!
messageReactionAdd loaded successfully!
messageReactionRemove loaded successfully!
ready loaded successfully!
|-----------------------------------|
According to my logs it is.
12 replies
DIAdiscord.js - Imagine an app
Created by Erin on 11/22/2022 in #djs-questions
What do I have to do to store how many upvotes and downvotes people have?
I do also have manage messages permission but it doesn't even error. Nothing logs.
12 replies
DIAdiscord.js - Imagine an app
Created by Erin on 11/22/2022 in #djs-questions
What do I have to do to store how many upvotes and downvotes people have?
I'm testing this now as I haven't had a chance until now. This is not logging anything...
module.exports = {
name: 'messageReactionAdd',
async execute(message, client) {
console.log(message)
}
}
module.exports = {
name: 'messageReactionAdd',
async execute(message, client) {
console.log(message)
}
}
I added intents:
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMessageReactions], partials: [Partials.Channel] });
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMessageReactions], partials: [Partials.Channel] });
12 replies
DIAdiscord.js - Imagine an app
Created by Erin on 11/30/2022 in #djs-questions
Strange error 10 min after running command?
Alright Ty!
32 replies
DIAdiscord.js - Imagine an app
Created by Erin on 11/30/2022 in #djs-questions
Strange error 10 min after running command?
Confusing for no reason
32 replies
DIAdiscord.js - Imagine an app
Created by Erin on 11/30/2022 in #djs-questions
Strange error 10 min after running command?
Lol
32 replies
DIAdiscord.js - Imagine an app
Created by Erin on 11/30/2022 in #djs-questions
Strange error 10 min after running command?
Then why do they use both? Discord is annoying
32 replies
DIAdiscord.js - Imagine an app
Created by Erin on 11/30/2022 in #djs-questions
Strange error 10 min after running command?
Close = archive?
32 replies