Skip to content

Commit

Permalink
Update alliance.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Jul 15, 2024
1 parent 2ec4ab1 commit 99dd58f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions aurora/commands/alliance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export default {
// TODO: Use args we already have instead of splitting and slicing content again.
const content = message.content.split(" ")
const info = content.slice(2).join(" ").split(';')

if (info.length < 9) return m.edit({embeds: [new EmbedBuilder()
.setTitle("Error creating alliance")
.setDescription(
Expand All @@ -228,8 +228,7 @@ export default {
]}).then(m => setTimeout(() => m.delete(), 10000)).catch(() => {})

const allianceName = info[0]

if (allianceName) return m.edit({embeds: [new EmbedBuilder()
if (!allianceName) return m.edit({embeds: [new EmbedBuilder()
.setTitle("Error creating alliance")
.setDescription("Alliance name is not provided! It is a required argument.")
.setAuthor({
Expand Down

0 comments on commit 99dd58f

Please sign in to comment.