Skip to content

Commit

Permalink
Update resident.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Jul 21, 2024
1 parent 56eda3f commit e0b291d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/resident.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ class ResidentHelper extends BaseHelper {
//const formattedPlayerName = res.name.replace(/_/g, "\\_")

const affiliation = {
town: (res.town ?? res.town.name) ?? res.townName,
nation: (res.nation ?? res.nation.name) ?? res.townNation
town: (res.town?.name ?? res.town) ?? res.townName,
nation: (res.nation?.name ?? res.nation) ?? res.townNation
}

this.embed.setTitle(`(${this.isNova ? 'Nova' : 'Aurora'}) Resident Info | \`${this.mcProfile.name}\``)
this.embed.setTitle(`(${this.isNova ? 'Nova' : 'Aurora'}) Resident Info | \`${res.name}\``)

if (res.about) {
this.embed.setDescription(`*${res.about}*`)
Expand Down

0 comments on commit e0b291d

Please sign in to comment.