thememe
thememe
DIAdiscord.js - Imagine an app
Created by thememe on 7/12/2023 in #djs-questions
discord api error 50001
const { SlashCommandBuilder } = require('discord.js');
const { EmbedBuilder } = require('discord.js')

module.exports = {
data: new SlashCommandBuilder()
.setName('user')
.setDescription('Provides information about the user.'),
async execute(interaction) {
const embedExample = new EmbedBuilder()
.setColor(ED4245)
.setURL('https://google.com')
.setTitle('${interaction.user.username} history in discord')
.addFields(
{ name: 'User joined at', value: '${interaction.member.joinedAt}' },
{ name: 'This command was run by', value: '${interaction.user.username} '}
)
// interaction.user is the object representing the User who ran the command
// interaction.member is the GuildMember object, which represents the user in the specific guild
await interaction.reply({ embeds: [embedExample] });
},
};
const { SlashCommandBuilder } = require('discord.js');
const { EmbedBuilder } = require('discord.js')

module.exports = {
data: new SlashCommandBuilder()
.setName('user')
.setDescription('Provides information about the user.'),
async execute(interaction) {
const embedExample = new EmbedBuilder()
.setColor(ED4245)
.setURL('https://google.com')
.setTitle('${interaction.user.username} history in discord')
.addFields(
{ name: 'User joined at', value: '${interaction.member.joinedAt}' },
{ name: 'This command was run by', value: '${interaction.user.username} '}
)
// interaction.user is the object representing the User who ran the command
// interaction.member is the GuildMember object, which represents the user in the specific guild
await interaction.reply({ embeds: [embedExample] });
},
};
at this time i make user history command, this is the error
DiscordAPIError[50001]: Missing Access
DiscordAPIError[50001]: Missing Access
14 replies