Class GuildPlaylistImpl
java.lang.Object
dev.jacrispys.JavaBot.audio.objects.GuildPlaylistImpl
- All Implemented Interfaces:
GuildPlaylist
-
Constructor Summary
ConstructorsConstructorDescriptionGuildPlaylistImpl
(net.dv8tion.jda.api.entities.Guild guild, String playlistUrl, @Nullable net.dv8tion.jda.api.entities.User owner) -
Method Summary
Modifier and TypeMethodDescriptionnet.dv8tion.jda.api.entities.Guild
getGuild()
@Nullable net.dv8tion.jda.api.entities.User
getOwner()
protected void
indexPlaylist
(net.dv8tion.jda.api.entities.Guild guild, String playlistUrl, net.dv8tion.jda.api.entities.User owner)
-
Constructor Details
-
GuildPlaylistImpl
public GuildPlaylistImpl(net.dv8tion.jda.api.entities.Guild guild, String playlistUrl, @Nullable @Nullable net.dv8tion.jda.api.entities.User owner)
-
-
Method Details
-
indexPlaylist
protected void indexPlaylist(net.dv8tion.jda.api.entities.Guild guild, String playlistUrl, net.dv8tion.jda.api.entities.User owner) -
getGuild
public net.dv8tion.jda.api.entities.Guild getGuild()- Specified by:
getGuild
in interfaceGuildPlaylist
- Returns:
- guild that the playlist was created for
-
getPlaylist
- Specified by:
getPlaylist
in interfaceGuildPlaylist
- Returns:
- string url of the playlist
-
getOwner
@Nullable public @Nullable net.dv8tion.jda.api.entities.User getOwner()- Specified by:
getOwner
in interfaceGuildPlaylist
- Returns:
- owner of the playlist (person who created it)
-