Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for custom statuses #2524

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/java/net/dv8tion/jda/api/entities/Activity.java
Original file line number Diff line number Diff line change
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
Loading