We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
discord.js
ExpectedConstraintError: Invalid string format
import { ContextMenuCommandBuilder, ApplicationCommandType } from "discord.js"; export default { data: new ContextMenuCommandBuilder().setName("— User Avatar").setType(ApplicationCommandType.User), run: async (client, interaction) => { const target = interaction.guild.members.cache.get(interaction.targetId); await interaction.reply({ content: `>>> ${target.user.avatarURL({ dynamic: true, extension: "jpg", size: 4096 })}`, ephemeral: true, }); }, };
discord.js@14.6.0
v18.8.0
Windows
Low (slightly annoying)
User, Channel, GuildMember, Message, Reaction
Guilds, GuildMembers, GuildVoiceStates, GuildMessages, MessageContent
No response
The text was updated successfully, but these errors were encountered:
Copied and pasted without builders and the command is successfully created.
Sorry, something went wrong.
The problem is with builders. It's occuring error on builders.
Yes, I'm just stating that this is a bug.
Successfully merging a pull request may close this issue.
Which package is this bug report for?
discord.js
Issue description
ExpectedConstraintError: Invalid string format
error.Code sample
Package version
discord.js@14.6.0
Node.js version
v18.8.0
Operating system
Windows
Priority this issue should have
Low (slightly annoying)
Which partials do you have configured?
User, Channel, GuildMember, Message, Reaction
Which gateway intents are you subscribing to?
Guilds, GuildMembers, GuildVoiceStates, GuildMessages, MessageContent
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: