diff --git a/commands/testing/server.js b/commands/testing/server.js index 7024595..2ee386a 100644 --- a/commands/testing/server.js +++ b/commands/testing/server.js @@ -5,6 +5,6 @@ module.exports = { .setName('server') .setDescription('Provides information about the server.'), async execute(interaction) { - await interaction.reply('This server is ${interaction.guild.name} and has ${interaction.guild.memberCount} members.'); + await interaction.reply(`This server is ${interaction.guild.name} and has ${interaction.guild.memberCount} members.`); }, }; \ No newline at end of file diff --git a/commands/testing/user.js b/commands/testing/user.js index 7b1b0b7..1f309b6 100644 --- a/commands/testing/user.js +++ b/commands/testing/user.js @@ -7,6 +7,6 @@ module.exports = { async execute(interaction) { // 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('This command was run by ${interaction.user.username}, who joined on ${interaction.member.joinedAt}.'); + await interaction.reply(`This command was run by ${interaction.user.username}, who joined on ${interaction.member.joinedAt}.`); }, }; \ No newline at end of file diff --git a/index.js b/index.js index 40ce374..b5ec6c6 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ for (const folder of commandFolders) { if ('data' in command && 'execute' in command) { client.commands.set(command.data.name, command); } else { - console.log('[WARNING] The command at ${filePath} is missing a required "data" or "execute" property.'); + console.log(`[WARNING] The command at ${filePath} is missing a required "data" or "execute" property.`); } } } @@ -37,7 +37,7 @@ client.on(Events.InteractionCreate, async interaction => { const command = client.commands.get(interaction.commandName); if (!command) { - console.error('No command matching ${interaction.commandName} was found.'); + console.error(`No command matching ${interaction.commandName} was found.`); return; }