Class GuildPlaylistImpl

java.lang.Object
dev.jacrispys.JavaBot.audio.objects.GuildPlaylistImpl
All Implemented Interfaces:
GuildPlaylist

public class GuildPlaylistImpl extends Object implements GuildPlaylist
  • 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 interface GuildPlaylist
      Returns:
      guild that the playlist was created for
    • getPlaylist

      public String getPlaylist()
      Specified by:
      getPlaylist in interface GuildPlaylist
      Returns:
      string url of the playlist
    • getOwner

      @Nullable public @Nullable net.dv8tion.jda.api.entities.User getOwner()
      Specified by:
      getOwner in interface GuildPlaylist
      Returns:
      owner of the playlist (person who created it)