Skip to content

Commit

Permalink
Fix buttons type (PreMiD#3844)
Browse files Browse the repository at this point in the history
This makes it so that you can only have a maximum of 2 buttons and not infinite like previously.
  • Loading branch information
ImRodry authored May 29, 2021
1 parent b10ad54 commit a3e798c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions @types/premid/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ interface PresenceData {
/**
* Array of buttons, max 2, label is the button text, and url is the link
*/
buttons?: {
label: string;
url: string;
}[];
buttons?: [ButtonData, ButtonData?];
}
interface ButtonData {
label: string
url: string
}
/**
* Options that change the behavior of the presence
Expand Down

0 comments on commit a3e798c

Please sign in to comment.