Skip to content

Commit

Permalink
probably shouldve checked it compiles before pushing lol
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Jul 5, 2023
1 parent cabac3e commit 58265fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/core/info.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export const InfoCommand: Command<ApplicationCommandType.ChatInput> = {
}
}

export const format = (val: string | number) => {
if (val instanceof Number) {
export const format = (val: string | BigInt | number) => {
if (typeof val === 'bigint' || typeof val === 'number') {
return `\`${val.toLocaleString()}\``
} else {
return `\`${val}\``
Expand Down

0 comments on commit 58265fc

Please sign in to comment.