Skip to content

Commit

Permalink
Added support for custom statuses (#2524)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jqnn committed Aug 14, 2023
1 parent a2fa810 commit 2c36ba7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/net/dv8tion/jda/api/entities/Activity.java
Expand Up @@ -277,7 +277,7 @@ static Activity of(@Nonnull ActivityType type, @Nonnull String name)
* @param type
* The {@link net.dv8tion.jda.api.entities.Activity.ActivityType ActivityType} to use
* @param name
* The not-null name of the newly created game
* The not-null name of the newly created game or custom status text
* @param url
* The streaming url to use, required to display as "streaming".
*
Expand Down Expand Up @@ -307,6 +307,8 @@ static Activity of(@Nonnull ActivityType type, @Nonnull String name, @Nullable S
return watching(name);
case COMPETING:
return competing(name);
case CUSTOM_STATUS:
return customStatus(name);
default:
throw new IllegalArgumentException("ActivityType " + type + " is not supported!");
}
Expand Down

0 comments on commit 2c36ba7

Please sign in to comment.