Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RedDaedalus committed Aug 9, 2023
1 parent 77ee5ae commit 8a6cc63
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/net/dv8tion/jda/api/entities/Activity.java
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,20 @@ static Activity competing(@Nonnull String name)
return EntityBuilder.createActivity(name, null, ActivityType.COMPETING);
}

/**
* Creates a new Activity instance with the specified name.
* <br>This will display without a prefix in the official client
*
* @param name
* The not-null name of the newly created status
*
* @throws IllegalArgumentException
* If the specified name is null, empty, blank or longer than 128 characters
*
* @return A valid Activity instance with the provided name with {@link net.dv8tion.jda.api.entities.Activity.ActivityType#CUSTOM_STATUS}
*
* @since 5.0.0
*/
@Nonnull
static Activity customStatus(@Nonnull String name)
{
Expand Down

0 comments on commit 8a6cc63

Please sign in to comment.