Skip to content

Commit

Permalink
Merge pull request #456 from Sayrix/Sayrix-patch-1
Browse files Browse the repository at this point in the history
Added CUSTOM type to status.type config
  • Loading branch information
Sayrix authored Dec 9, 2024
2 parents 9368569 + ee1f6a3 commit d3c73de
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/events/ready.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,12 @@ export default class ReadyEvent extends BaseEvent {
case "WATCHING":
type = 3;
break;
case "COMPETING":
case "CUSTOM":

Check failure on line 196 in src/events/ready.ts

View workflow job for this annotation

GitHub Actions / main (ubuntu-latest, 18)

Type '"CUSTOM"' is not comparable to type '"PLAYING" | "STREAMING" | "LISTENING" | "WATCHING" | "COMPETING"'.
type = 4;
break;
case "COMPETING":
type = 5;
break;
}

if (this.client.config.status.type && this.client.config.status.text) {
Expand Down Expand Up @@ -301,4 +304,4 @@ Copyright 2023 Sayrix (github.com/Sayrix)
Licensed under the Creative Commons Attribution 4.0 International
please check https://creativecommons.org/licenses/by/4.0 for more informations.
*/
*/

0 comments on commit d3c73de

Please sign in to comment.