Interface SoundboardSoundSnowflake
- All Superinterfaces:
ISnowflake
- All Known Subinterfaces:
SoundboardSound
Represents a soundboard sound's snowflake ID.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SoundboardSoundSnowflakefromId(long id) Creates a SoundboardSound instance which only wraps an ID.static SoundboardSoundSnowflakeCreates a SoundboardSound instance which only wraps an ID.default StringgetUrl()Returns the URL to the sound asset.Methods inherited from interface ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
fromId
Creates a SoundboardSound instance which only wraps an ID.- Parameters:
id- The soundboard sound id- Returns:
- A soundboard sound snowflake instance
- See Also:
-
fromId
Creates a SoundboardSound instance which only wraps an ID.- Parameters:
id- The soundboard sound id- Returns:
- A soundboard sound snowflake instance
- Throws:
IllegalArgumentException- If the provided ID is not a valid snowflake- See Also:
-
getUrl
Returns the URL to the sound asset.The format used may be MP3 or Ogg.
- Returns:
- A String representing this sound's asset
-