Skip to content

Commit

Permalink
Merge pull request #16 from andrewstech/main
Browse files Browse the repository at this point in the history
chore: Refactor decode command to simplify reply format
  • Loading branch information
andrewstech authored Jul 19, 2024
2 parents aee27df + beebb95 commit 3dfa56e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions commands/decode.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ module.exports = {
const secretKey = process.env.ENCRYPTION_KEY;
const decodeKey = secretKey + id;
const decoded = jwt.verify(key, decodeKey);
const embed = new EmbedBuilder()
.setTitle("Decoded Key")
.setColor("#0096ff")
.addField("Decoded Key", JSON.stringify(decoded, null, 2));
await interaction.editReply({ embeds: [embed] });
await interaction.editReply({ content: `Decoded: ${JSON.stringify(decoded)}` });

} catch (error) {
console.error("Error performing lookup:", error);
Expand Down

0 comments on commit 3dfa56e

Please sign in to comment.