Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Jun 25, 2024
1 parent eb63709 commit 035102b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bot/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
SharedNameAndDescription
} from "discord.js"

import type { Dynmap, Squaremap } from "earthmc"
import type { Map } from "earthmc"
import type { Timestamp, WriteResult } from "firebase-admin/firestore"

export type BaseCommand = {
Expand Down Expand Up @@ -43,7 +43,7 @@ export type DJSEvent = {
}

export type MapInstance = {
emc: Squaremap | Dynmap,
emc: Map,
db: MapDB
}

Expand Down
4 changes: 2 additions & 2 deletions common/resident.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ class ResidentHelper extends BaseHelper {
if (!this.isNova) {
let res: OAPIResident
try {
res = await OfficialAPI.V2.resident(arg1)
res = await OfficialAPI.resident(arg1)
} catch (e) {
console.log(e)
return false
}

if (res.town) {
const resTown = await OfficialAPI.V2.town(res.town.toLowerCase())
const resTown = await OfficialAPI.town(res.town.toLowerCase())

let rank = resTown.mayor == res.name ? "Mayor" : "Resident"
if (rank == "Mayor" && resTown.status.isCapital)
Expand Down

0 comments on commit 035102b

Please sign in to comment.