diff --git a/commands/Info/session-id.js b/commands/Info/session-id.js index 00c0d48..7ddbcdc 100644 --- a/commands/Info/session-id.js +++ b/commands/Info/session-id.js @@ -9,16 +9,17 @@ module.exports = { run: async (client, interaction) => { const file = './cache/' + interaction.user.id - jsonfile.readFile(file, function (err, obj) { + jsonfile.readFile(file, function (err, session) { if (err) return interaction.editReply('Please create a session using /create-session.'); const embed = new EmbedBuilder() - .setColor("#FF0000") - .setTitle("New Chat Session Started!") - .setDescription(`Current Session ID: \n` + obj.id) - .setTimestamp() - .setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` }); - interaction.followUp({ embeds: [embed] }); + .setColor("#FF0000") + .setTitle("Your current session ID") + .setDescription(`**Session ID:** \`${session.id}\`\n\nThe above ID is a unique session memories are stored for processing.`) + .setTimestamp() + .setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` }); + + interaction.followUp({ embeds: [embed] }); }) },