Index

A B C D G H J L M N O P Q R S T U V Y 
All Classes and Interfaces|All Packages

A

addCommandOption(SlashCommandOptionType, String, String, boolean) - Method in class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandOptionCustomizer
Method to add an option to the slash command
addCommandOptionWithChoices(SlashCommandOptionType, String, String, boolean, List<SlashCommandOptionChoice>) - Method in class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandOptionCustomizer
Method to add an option with option choices to the slash command
addPlayerControlsHandler(PlayerControlsHandler) - Method in class org.prithvidiamond1.AudioPlayer.PlayerAudioSource
Method to link a player controls handler to this player audio source's track scheduler
addPlayerControlsHandler(PlayerControlsHandler) - Method in class org.prithvidiamond1.AudioPlayer.TrackScheduler
Method to link a player controls handler to the audio player's track scheduler
addSubCommand(String, String) - Method in class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandSubCommandCustomizer
Method to add a sub command to the slash command
addSubCommandGroup(String, String) - Method in class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandSubCommandGroupCustomizer
Method to add a sub command group to the slash command
AlreadyConnected - Enum constant in enum class org.prithvidiamond1.Main.VoiceConnectionStatus
State for a pre-existing audio connection
audioPlayer - Variable in class org.prithvidiamond1.AudioPlayer.PlayerAudioSource
The audio player instance
audioPlayer - Variable in class org.prithvidiamond1.AudioPlayer.TrackScheduler
The audio player instance that connects with the TrackScheduler
AudioSourceHandler - Class in org.prithvidiamond1.AudioPlayer
Class that handles the player source and its related functions such track and playlist loading.
AudioSourceHandler(PlayerAudioSource) - Constructor for class org.prithvidiamond1.AudioPlayer.AudioSourceHandler
Constructor for this class
audioSources - Static variable in class org.prithvidiamond1.Main
Supported Audio Sources for voice channel audio playback
AuxiliaryListeners - Class in org.prithvidiamond1
This class contains event listeners apart from the main event listeners
AuxiliaryListeners() - Constructor for class org.prithvidiamond1.AuxiliaryListeners
 

B

botAccentColor - Static variable in class org.prithvidiamond1.Main
The bot's accent color (currently a shade of cyan)
botIconURL - Static variable in class org.prithvidiamond1.Main
String containing a URL to the bot's icon image

C

clearTrackQueue() - Method in class org.prithvidiamond1.AudioPlayer.TrackScheduler
Method that clears the track queue
clearTrackQueue(MessageComponentInteraction) - Method in class org.prithvidiamond1.AudioPlayer.PlayerControlsHandler
Method that handles the clear track queue button function of the bot's player
Command - Interface in org.prithvidiamond1.Commands
Interface that can be used create commands that have both guild and slash command functionalities
CommandFunctions - Class in org.prithvidiamond1
This class holds all the secondary functions required for the bot commands
CommandFunctions() - Constructor for class org.prithvidiamond1.CommandFunctions
 
CommandHandler - Class in org.prithvidiamond1
Class that contains methods and fields for handling command calls
CommandHandler() - Constructor for class org.prithvidiamond1.CommandHandler
 
CommandRegister - Class in org.prithvidiamond1
Class that contains methods for registering and running bot commands
CommandRegister() - Constructor for class org.prithvidiamond1.CommandRegister
 
copy() - Method in class org.prithvidiamond1.AudioPlayer.PlayerAudioSource
Method that returns a copy of the current audio source

D

defaultGuildPrefix - Static variable in class org.prithvidiamond1.Main
The default guild prefix for bot guild commands
discordApi() - Method in class org.prithvidiamond1.Main
Method that runs the Discord bot instance
DiscordServer - Class in org.prithvidiamond1.DB.Models
This class manages the backend repository (MongoDB Atlas) that holds each Discord server's preferences.
DiscordServer(String, String) - Constructor for class org.prithvidiamond1.DB.Models.DiscordServer
The constructor for the repository
discordServerRepository - Static variable in class org.prithvidiamond1.Main
The backend repository object for storing server preferences
DiscordServerRepository - Interface in org.prithvidiamond1.DB.Repositories
Interface that inherits the MongoRepository template interface
Can be used to create a Discord server repository that uses MongoDB backends such as Atlas to store each Discord server's preferences

G

gayRate() - Static method in class org.prithvidiamond1.CommandFunctions
Method to calculate gay rate and to get url for the respective gayness image
GayrateCommand - Class in org.prithvidiamond1.Commands
This class contains the actions of the gayrate command
Calculates how gay a person is using pseudo-RNG
GayrateCommand() - Constructor for class org.prithvidiamond1.Commands.GayrateCommand
 
generateHelpDescription(String) - Static method in class org.prithvidiamond1.CommandHandler
Method that generates a help command description based on the descriptions given to each command
getBestSearchResult(String) - Method in class org.prithvidiamond1.AudioPlayer.Youtube.YoutubeSearchEngine
Method that returns the best YouTube search result based on a search string
getGuildPrefix() - Method in class org.prithvidiamond1.DB.Models.DiscordServer
Method to get the Discord server's current guild prefix
getId() - Method in class org.prithvidiamond1.DB.Models.DiscordServer
Method to get the Discord server's ID
getLastPlayedTrack() - Method in class org.prithvidiamond1.AudioPlayer.TrackScheduler
Method that gets the last played track
getNextFrame() - Method in class org.prithvidiamond1.AudioPlayer.PlayerAudioSource
Method that gets the next frame in the audio source
getNextTrackInQueue() - Method in class org.prithvidiamond1.AudioPlayer.TrackScheduler
Method that gets the next track in the queue;
getOptionList() - Method in class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandOptionCustomizer
Method that returns the list of options added to the slash command
getQueueSize() - Method in class org.prithvidiamond1.AudioPlayer.TrackScheduler
Method that gets the current size of the queue
getService() - Static method in class org.prithvidiamond1.AudioPlayer.Youtube.YoutubeSearchEngineInitializer
Build and return an authorized API client service.
getSubCommandGroupList() - Method in class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandSubCommandGroupCustomizer
Method that returns the list of sub command groups added to the slash command
getSubCommandList() - Method in class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandSubCommandCustomizer
Method that returns the list of sub commands added to the slash command
getTracksInQueue() - Method in class org.prithvidiamond1.AudioPlayer.TrackScheduler
Method that gets all the tracks in the queue in the form an iterator
getVideoSnippetById(String) - Method in class org.prithvidiamond1.AudioPlayer.Youtube.YoutubeSearchEngine
Method that gets a YouTube video snippet based on its video ID
getYoutubeVideoUrl(VideoSnippet) - Static method in class org.prithvidiamond1.CommandFunctions
Gets the url of a YouTube video snippet VideoSnippet

H

hasFinished() - Method in class org.prithvidiamond1.AudioPlayer.PlayerAudioSource
Method that checks if an audio source has finished
hasNextFrame() - Method in class org.prithvidiamond1.AudioPlayer.PlayerAudioSource
Method that checks if an audio source has another frame ahead
HelpCommand - Class in org.prithvidiamond1.Commands
This class contains the actions of the help command
Displays a description of all the available bot commands
HelpCommand() - Constructor for class org.prithvidiamond1.Commands.HelpCommand
 

J

jump(AudioTrack) - Method in class org.prithvidiamond1.AudioPlayer.TrackScheduler
Method that adds a track to the front of the deque (jumps the queue)

L

loadFailed(FriendlyException) - Method in class org.prithvidiamond1.AudioPlayer.AudioSourceHandler
Method to call in case of an exception occurring during track or playlist loading
logger - Static variable in class org.prithvidiamond1.Main
The main logger object

M

main(String[]) - Static method in class org.prithvidiamond1.Main
The start point for the Discord bot application
Main - Class in org.prithvidiamond1
The main class of the Discord bot
Main(DiscordServerRepository) - Constructor for class org.prithvidiamond1.Main
Constructor for the Main class
Main.VoiceConnectionStatus - Enum Class in org.prithvidiamond1
Enumerations for the different voice channel connection states

N

nextTrack() - Method in class org.prithvidiamond1.AudioPlayer.TrackScheduler
Method that plays the next track in the queue
noMatches() - Method in class org.prithvidiamond1.AudioPlayer.AudioSourceHandler
Method to call in case of no matched audio sources

O

onComponentCreate(MessageComponentCreateEvent) - Method in class org.prithvidiamond1.AudioPlayer.PlayerControlsHandler
Method that handles button events (MessageComponentCreateEvent)
onEvent(AudioEvent) - Method in class org.prithvidiamond1.AudioPlayer.TrackScheduler
Method that runs when an AudioEvent occurs
onMessageCreate(MessageCreateEvent) - Method in class org.prithvidiamond1.CommandHandler
Method that runs a command as a guild command upon receiving its call
onServerJoin(ServerJoinEvent) - Method in class org.prithvidiamond1.HelperHandlers.ServerJoinHandler
Method that dictates what happens when the Discord bot joins a server
onServerLeave(ServerLeaveEvent) - Method in class org.prithvidiamond1.HelperHandlers.ServerLeaveHandler
Method that dictates what happens when the Discord bot leaves a server
onSlashCommandCreate(SlashCommandCreateEvent) - Method in class org.prithvidiamond1.CommandHandler
Method that runs a command as a slash command upon receiving its call
org.prithvidiamond1 - package org.prithvidiamond1
 
org.prithvidiamond1.AudioPlayer - package org.prithvidiamond1.AudioPlayer
 
org.prithvidiamond1.AudioPlayer.Youtube - package org.prithvidiamond1.AudioPlayer.Youtube
 
org.prithvidiamond1.Commands - package org.prithvidiamond1.Commands
 
org.prithvidiamond1.DB.Models - package org.prithvidiamond1.DB.Models
 
org.prithvidiamond1.DB.Repositories - package org.prithvidiamond1.DB.Repositories
 
org.prithvidiamond1.HelperHandlers - package org.prithvidiamond1.HelperHandlers
 
org.prithvidiamond1.SlashCommandCustomizers - package org.prithvidiamond1.SlashCommandCustomizers
 

P

PingCommand - Class in org.prithvidiamond1.Commands
This class contains the actions of the ping command
Pings the bot for a greeting!
PingCommand() - Constructor for class org.prithvidiamond1.Commands.PingCommand
 
PlayCommand - Class in org.prithvidiamond1.Commands
This class contains the actions of the play command
Plays audio from a requested audio source
PlayCommand() - Constructor for class org.prithvidiamond1.Commands.PlayCommand
 
playerActionRow - Static variable in class org.prithvidiamond1.AudioPlayer.PlayerControlsHandler
The ActionRow that contains the audio player control buttons
playerAudioSource - Variable in class org.prithvidiamond1.AudioPlayer.AudioSourceHandler
The audio source to which the audio player is connected to
PlayerAudioSource - Class in org.prithvidiamond1.AudioPlayer
This class holds functions related to a player's audio source
PlayerAudioSource(DiscordApi, TextChannel, ServerVoiceChannel, AudioPlayerManager) - Constructor for class org.prithvidiamond1.AudioPlayer.PlayerAudioSource
Creates a new audio source base.
PlayerControlsHandler - Class in org.prithvidiamond1.AudioPlayer
This class contains methods and fields for handling the audio player controls from the user's end
PlayerControlsHandler(AudioSourceHandler) - Constructor for class org.prithvidiamond1.AudioPlayer.PlayerControlsHandler
Simple constructor for initializing the PlayerControlsHandler
playlistLoaded(AudioPlaylist) - Method in class org.prithvidiamond1.AudioPlayer.AudioSourceHandler
Method to load a playlist
PrefixCommand - Class in org.prithvidiamond1.Commands
This class contains the actions of the prefix command
Allows the user to change the guild prefix of the bot within the server
PrefixCommand() - Constructor for class org.prithvidiamond1.Commands.PrefixCommand
 

Q

queue(AudioTrack) - Method in class org.prithvidiamond1.AudioPlayer.TrackScheduler
Method that adds a track to the back of the deque (normal queuing)

R

randomRate() - Static method in class org.prithvidiamond1.CommandFunctions
Method to calculate a random rate between 1 and 100
registerCommand(String, String, Command) - Method in class org.prithvidiamond1.CommandHandler
Method to register a command
removeAudioPlayerControls(TextChannel) - Static method in class org.prithvidiamond1.ServerHelperFunctions
Method to remove audio player controls from bot messages sent in a server text channel
removeGlobalSlashCommand(DiscordApi, String) - Static method in class org.prithvidiamond1.ServerHelperFunctions
Method to remove a global slash command from the bot
resolveServerModelById(Server) - Static method in class org.prithvidiamond1.ServerHelperFunctions
Method that resolves a Javacord Server entity into its corresponding database model
run(DiscordApi, CommandHandler) - Static method in class org.prithvidiamond1.CommandRegister
Method that runs the bot commands
runCommand(SlashCommandCreateEvent) - Method in interface org.prithvidiamond1.Commands.Command
Method that runs the slash version of the command
runCommand(SlashCommandCreateEvent) - Method in class org.prithvidiamond1.Commands.GayrateCommand
the slash version of the gayrate command
runCommand(SlashCommandCreateEvent) - Method in class org.prithvidiamond1.Commands.HelpCommand
the slash version of the help command
runCommand(SlashCommandCreateEvent) - Method in class org.prithvidiamond1.Commands.PingCommand
the slash version of the ping command
runCommand(SlashCommandCreateEvent) - Method in class org.prithvidiamond1.Commands.PlayCommand
the slash version of the play command
runCommand(SlashCommandCreateEvent) - Method in class org.prithvidiamond1.Commands.PrefixCommand
the slash version of the prefix command
runCommand(SlashCommandCreateEvent) - Method in class org.prithvidiamond1.Commands.SimprateCommand
the slash version of the simprate command
runCommand(MessageCreateEvent) - Method in interface org.prithvidiamond1.Commands.Command
Method that runs the guild version of the command
runCommand(MessageCreateEvent) - Method in class org.prithvidiamond1.Commands.GayrateCommand
the guild version of the gayrate command
runCommand(MessageCreateEvent) - Method in class org.prithvidiamond1.Commands.HelpCommand
the guild version of the help command
runCommand(MessageCreateEvent) - Method in class org.prithvidiamond1.Commands.PingCommand
the guild version of the ping command
runCommand(MessageCreateEvent) - Method in class org.prithvidiamond1.Commands.PlayCommand
the guild version of the play command
runCommand(MessageCreateEvent) - Method in class org.prithvidiamond1.Commands.PrefixCommand
the guild version of the prefix command
runCommand(MessageCreateEvent) - Method in class org.prithvidiamond1.Commands.SimprateCommand
the guild version of the simprate command

S

selfMentionListener(DiscordApi) - Static method in class org.prithvidiamond1.AuxiliaryListeners
Method that creates a listener for standalone self-mentions
ServerHelperFunctions - Class in org.prithvidiamond1
This class holds all the server related bot helper functions
ServerHelperFunctions() - Constructor for class org.prithvidiamond1.ServerHelperFunctions
 
ServerJoinHandler - Class in org.prithvidiamond1.HelperHandlers
This class handles events related to Discord server joins done by the Discord bot
It does this by implementing a listener for it
ServerJoinHandler() - Constructor for class org.prithvidiamond1.HelperHandlers.ServerJoinHandler
 
ServerLeaveHandler - Class in org.prithvidiamond1.HelperHandlers
This class handles events related to Discord server leave(s) done by the Discord bot
It does this by implementing a listener for it
ServerLeaveHandler() - Constructor for class org.prithvidiamond1.HelperHandlers.ServerLeaveHandler
 
setCustomizations() - Method in class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandCustomizer
Method to save the customizations done to the slash command
setGuildPrefix(String) - Method in class org.prithvidiamond1.DB.Models.DiscordServer
Method to set the Discord server's current guild prefix
setId(String) - Method in class org.prithvidiamond1.DB.Models.DiscordServer
Method to set the Discord server's ID
SimprateCommand - Class in org.prithvidiamond1.Commands
This class contains the actions of the simprate command
Calculates how much of a simp a person is using pseudo-RNG
SimprateCommand() - Constructor for class org.prithvidiamond1.Commands.SimprateCommand
 
SlashCommandCustomizer - Class in org.prithvidiamond1.SlashCommandCustomizers
This class contains methods to customize slash commands by implementing SlashCommandCustomizerInterface
SlashCommandCustomizer(SlashCommandBuilder) - Constructor for class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandCustomizer
Constructor for the customizer
SlashCommandCustomizerInterface - Class in org.prithvidiamond1.SlashCommandCustomizers
Interface that allows for the customization of slash commands
Inherits SlashCommandSubCommandGroupCustomizer
SlashCommandCustomizerInterface() - Constructor for class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandCustomizerInterface
 
SlashCommandOptionCustomizer - Class in org.prithvidiamond1.SlashCommandCustomizers
Interface that allows for the customization of slash commands using options
SlashCommandOptionCustomizer() - Constructor for class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandOptionCustomizer
Constructor of this abstract class
SlashCommandSubCommandCustomizer - Class in org.prithvidiamond1.SlashCommandCustomizers
Interface that allows for the customization of slash commands using sub commands
Inherits SlashCommandOptionCustomizer
SlashCommandSubCommandCustomizer() - Constructor for class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandSubCommandCustomizer
Constructor of this abstract class
SlashCommandSubCommandGroupCustomizer - Class in org.prithvidiamond1.SlashCommandCustomizers
Interface that allows for the customization of slash commands using sub command groups
Inherits SlashCommandSubCommandCustomizer
SlashCommandSubCommandGroupCustomizer() - Constructor for class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandSubCommandGroupCustomizer
Constructor of this abstract class
Successful - Enum constant in enum class org.prithvidiamond1.Main.VoiceConnectionStatus
State for successful audio connection

T

toString() - Method in class org.prithvidiamond1.DB.Models.DiscordServer
Method that overrides the repository's existing toString method
trackLoaded(AudioTrack) - Method in class org.prithvidiamond1.AudioPlayer.AudioSourceHandler
Method to load a track
trackScheduler - Variable in class org.prithvidiamond1.AudioPlayer.PlayerAudioSource
The track scheduler instance that connects to the AudioPlayer
TrackScheduler - Class in org.prithvidiamond1.AudioPlayer
This class holds all the functions related to scheduling player tracks such as the track queue and player control functions
TrackScheduler(TextChannel, ServerVoiceChannel, AudioPlayer) - Constructor for class org.prithvidiamond1.AudioPlayer.TrackScheduler
A simple constructor for the track scheduler

U

Unsuccessful - Enum constant in enum class org.prithvidiamond1.Main.VoiceConnectionStatus
State for unsuccessful audio connection

V

valueOf(String) - Static method in enum class org.prithvidiamond1.Main.VoiceConnectionStatus
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.prithvidiamond1.Main.VoiceConnectionStatus
Returns an array containing the constants of this enum class, in the order they are declared.
viewFullTrackQueue(MessageComponentInteraction) - Method in class org.prithvidiamond1.AudioPlayer.PlayerControlsHandler
Method that handles the view full track queue button function of the bot's player

Y

youtube - Variable in class org.prithvidiamond1.AudioPlayer.Youtube.YoutubeSearchEngine
The YouTube service API instance
youtubeApiKey - Static variable in class org.prithvidiamond1.Main
The YouTube API key
YoutubeSearchEngine - Class in org.prithvidiamond1.AudioPlayer.Youtube
Class that implements methods for using the YouTube Search Engine API
YoutubeSearchEngine() - Constructor for class org.prithvidiamond1.AudioPlayer.Youtube.YoutubeSearchEngine
Constructor that initializes the search engine API service
YoutubeSearchEngineInitializer - Class in org.prithvidiamond1.AudioPlayer.Youtube
Class for initializing a YouTube Search Engine API instance
YoutubeSearchEngineInitializer() - Constructor for class org.prithvidiamond1.AudioPlayer.Youtube.YoutubeSearchEngineInitializer
 
A B C D G H J L M N O P Q R S T U V Y 
All Classes and Interfaces|All Packages