Skip to content

Commit

Permalink
feat: Add error color to domain not found messages
Browse files Browse the repository at this point in the history
This commit updates the `Owl.js` file to include an error color when displaying the "That domain doesn't exist in the register" and "That domain doesn't have an OWL field" messages. The error color is set to `#ff0000` to make it more noticeable to the user.

Co-authored-by:  FRED
  • Loading branch information
andrewstech committed Jul 29, 2024
1 parent cdca843 commit 91f34ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions events/buttons/Owl.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ module.exports = async function (interaction) {

const domainData = await fetchDomainData(domain);
if (!domainData) {
return sendEmbed(interaction, "That domain doesn't exist in the register.", true);
return sendEmbed(interaction, "That domain doesn't exist in the register.", "#ff0000", true);
}

if (!domainData.owner.OWL) {
return sendEmbed(interaction, "That domain doesn't have an OWL field.", true);
return sendEmbed(interaction, "That domain doesn't have an OWL field.", "#ff0000", true);
}

try {
Expand Down

0 comments on commit 91f34ff

Please sign in to comment.