Skip to content

Commit

Permalink
[Enhancement] add current DJ Role to the embed if it exists and not e…
Browse files Browse the repository at this point in the history
…nough args were given
  • Loading branch information
naseif committed Nov 2, 2021
1 parent f40c175 commit 8312f77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion commands/Config/dj.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ module.exports = {
});

if (!args[0]) {
const djrole = await client.db.get(`djRole_${message.guildId}`);

return await message.channel.send({
embeds: [
embedMessage(
"#9dcc37",
`Please choose whether you want to set or delete an existing role`
`Please choose whether you want to set or delete an existing role\nCurrent DJ Role: ${
djrole ? `<@&${djrole}>` : "None"
}`
),
],
});
Expand Down

0 comments on commit 8312f77

Please sign in to comment.