Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Java-Discord/JavaBot
/ functions
Functions
1,112 in github.com/Java-Discord/JavaBot
⨍
Functions
1,112
◇
Types & classes
319
↓ 1 callers
Method
changeForumPin
Removes the current pin in a forum channel and pins a new post. @param toPin the forum channel to pin @return a {@link RestAction} performing the pin
src/main/java/net/discordjug/javabot/systems/qotw/jobs/QOTWCloseSubmissionsJob.java:165
↓ 1 callers
Method
changeName
Changes the given {@link Member}s name to a randomly generated one. @param member The Member whose name should be changed.
src/main/java/net/discordjug/javabot/listener/PingableNameListener.java:71
↓ 1 callers
Method
changePoints
(Member targetMember, SlashCommandInteractionEvent event)
src/main/java/net/discordjug/javabot/systems/qotw/commands/qotw_points/ChangePointsSubcommand.java:64
↓ 1 callers
Method
checkColor
Checks if the specified string is a valid {@link java.awt.Color}. @param nm The provided color, as a string. @return Whether the specified string is
src/main/java/net/discordjug/javabot/util/Checks.java:98
↓ 1 callers
Method
checkExperienceRoles
(@NotNull Guild guild, @NotNull HelpAccount account)
src/main/java/net/discordjug/javabot/systems/help/HelpExperienceService.java:106
↓ 1 callers
Method
checkForEndOfRaid
Checks to see if we should unlock the guild. @param guild The guild to check.
src/main/java/net/discordjug/javabot/systems/moderation/server_lock/ServerLockManager.java:187
↓ 1 callers
Method
checkForRaid
Checks to see if we should lock the guild by analyzing the pattern of users who recently joined the guild. @param guild The guild to check.
src/main/java/net/discordjug/javabot/systems/moderation/server_lock/ServerLockManager.java:174
↓ 1 callers
Method
checkForumPost
(@NotNull ThreadChannel post, HelpConfig config)
src/main/java/net/discordjug/javabot/systems/help/HelpForumUpdater.java:56
↓ 1 callers
Method
checkHexColor
(String hex)
src/main/java/net/discordjug/javabot/util/Checks.java:107
↓ 1 callers
Method
checkNewMessageAutomod
Runs all automod checks that should be run when a message is sent. @param message the {@link Message} that should be checked
src/main/java/net/discordjug/javabot/systems/moderation/AutoMod.java:105
↓ 1 callers
Method
checkVotes
(Message msg, @NotNull Guild guild)
src/main/java/net/discordjug/javabot/listener/ForumPostVoteListener.java:166
↓ 1 callers
Method
cleanString
returns the original String cleaned up of unused code points and spaces. @param input the input String. @return the cleaned-up String.
src/main/java/net/discordjug/javabot/systems/moderation/AutoMod.java:183
↓ 1 callers
Method
closeForm
Closes the form, preventing further submissions and disabling associated buttons from a message this form is attached to, if any. @param guild guild
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/FormInteractionManager.java:79
↓ 1 callers
Method
closeForm
Set this form's closed state to true. @param form form to close
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:73
↓ 1 callers
Method
computeAttachmentDescription
(List<Message.Attachment> attachments)
src/main/java/net/discordjug/javabot/listener/filter/MessageRuleFilter.java:109
↓ 1 callers
Method
containsBotMessageContent
(String content)
src/main/java/net/discordjug/javabot/systems/help/checks/ChannelSemanticData.java:24
↓ 1 callers
Method
convertMessageToString
(Message msg)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/ClearOldHelpNotificationJob.java:102
↓ 1 callers
Method
copySampleAnswerSubmission
(@NotNull ThreadChannel thread, @NotNull User author)
src/main/java/net/discordjug/javabot/systems/qotw/submissions/SubmissionManager.java:213
↓ 1 callers
Method
createAPIAccount
(QOTWAccount account, User user, List<QOTWAccount> topAccounts, int page)
src/main/java/net/discordjug/javabot/api/routes/leaderboard/qotw/QOTWLeaderboardController.java:81
↓ 1 callers
Method
createArchiveWriter
Creates a new {@link PrintWriter} which can be used to record information about purged messages from a channel. @param channel The channel to crea
src/main/java/net/discordjug/javabot/systems/moderation/PurgeCommand.java:222
↓ 1 callers
Method
createBasicHelpEmbedBuilder
(ThreadChannel post, Member member)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/HelpPingSubcommand.java:132
↓ 1 callers
Method
createComponents
Creates text components for use in the submission modal. @return An unmodifiable list of layout components for use in the submission modal.
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/model/FormData.java:85
↓ 1 callers
Method
createCustomVC
(GuildVoiceUpdateEvent event, AudioChannelUnion vcJoined)
src/main/java/net/discordjug/javabot/systems/custom_vc/CustomVCListener.java:41
↓ 1 callers
Method
createDMCloseInfoEmbed
(Member closingMember, ThreadChannel postThread, String reason, PrivateChannel c)
src/main/java/net/discordjug/javabot/systems/help/HelpManager.java:141
↓ 1 callers
Method
createDMDormantInfo
(ThreadChannel post, HelpConfig config)
src/main/java/net/discordjug/javabot/systems/help/HelpForumUpdater.java:92
↓ 1 callers
Method
createEmptyStaffActivityEmbed
(Member member)
src/main/java/net/discordjug/javabot/systems/staff_activity/StaffActivityService.java:116
↓ 1 callers
Method
createFormDetailsEmbed
(FormData form, Guild guild)
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/DetailsFormSubcommand.java:71
↓ 1 callers
Method
createFormFieldFromEvent
(SlashCommandInteractionEvent e)
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/AddFieldFormSubcommand.java:92
↓ 1 callers
Method
createHelpEmbed
(String comment, ThreadChannel post, Member member)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/HelpPingSubcommand.java:124
↓ 1 callers
Method
createIncrementEmbedBuilder
Creates an {@link EmbedBuilder} for the notification embed. @param user The user whose account is incremented @param points The new total number of po
src/main/java/net/discordjug/javabot/systems/qotw/commands/qotw_points/ChangePointsSubcommand.java:93
↓ 1 callers
Method
createMakePublicButton
()
src/main/java/net/discordjug/javabot/systems/custom_vc/CustomVCButtonHandler.java:32
↓ 1 callers
Method
createPinnedAnswerForum
(QOTWConfig qotwConfig, QOTWQuestion question, MessageCreateData data)
src/main/java/net/discordjug/javabot/systems/qotw/jobs/QOTWCloseSubmissionsJob.java:150
↓ 1 callers
Method
createReportUserThread
(ButtonInteractionEvent event, String[] id)
src/main/java/net/discordjug/javabot/systems/moderation/report/ReportManager.java:65
↓ 1 callers
Method
createSubmissionEmbed
(FormData form, List<ModalMapping> values, Member author)
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/FormInteractionManager.java:274
↓ 1 callers
Method
createTextInput
Create a text input from this field. @param id ID of this text input. @return text input ready to use in a modal.
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/model/FormField.java:49
↓ 1 callers
Method
createUndoAcknowledgementButton
(String postId)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/HelpPingSubcommand.java:170
↓ 1 callers
Method
delete
Deletes a Custom Command. @param command The custom command to delete. @throws SQLException If an error occurs.
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/dao/CustomTagRepository.java:75
↓ 1 callers
Method
deleteForm
Deletes a form from the database. @param form form to delete
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:82
↓ 1 callers
Method
deleteOldMessagesInChannel
(TextChannel helpNotificationChannel, MessageHistory history, List<Message> foundSoFar)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/ClearOldHelpNotificationJob.java:48
↓ 1 callers
Method
deleteSubmissions
Deletes user's submissions from this form. @param form form to delete submissions for @param user user to delete submissions for @return number of de
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:93
↓ 1 callers
Method
detachForm
Detaches a form from a message. @param form form to detach
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:105
↓ 1 callers
Method
detachFromMessage
Detaches the form from a message it's attached to, deleting any associated buttons. Fails silently if the message was not found. @param form form to
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/DetachFormSubcommand.java:89
↓ 1 callers
Method
disableActionRows
(List<MessageTopLevelComponentUnion> actionRows)
src/main/java/net/discordjug/javabot/util/MessageActionUtils.java:60
↓ 1 callers
Method
discardAll
Discards all warnings that have been issued to a given user after a given timestamp. @param userId The id of the user to discard warnings for. @param
src/main/java/net/discordjug/javabot/systems/moderation/warn/dao/WarnRepository.java:72
↓ 1 callers
Method
discardAllWarns
Clears warns from the given user by discarding all warns. @param user The user to clear warns from. @param clearedBy The user who cleared the wa
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:134
↓ 1 callers
Method
discardById
Discards the warning with the corresponding id. @param id The id of the Warn to discard. @throws SQLException If an error occurs.
src/main/java/net/discordjug/javabot/systems/moderation/warn/dao/WarnRepository.java:86
↓ 1 callers
Method
discardWarnById
Clears a warn by discarding the Warn with the corresponding id. @param id The id of the warn to discard. @param clearedBy The user who cleared
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:159
↓ 1 callers
Method
doesAuthorMatch
(long userId, Message msg)
src/main/java/net/discordjug/javabot/listener/VotingRegulationListener.java:32
↓ 1 callers
Method
doesMatchDetector
(String content, String[] detector)
src/main/java/net/discordjug/javabot/systems/help/HelpListener.java:186
↓ 1 callers
Method
drawUserCard
Draws a single "user card". @param leaderboardCreator handling actual drawing. @param member The member. @param service The {@link QOTWPointsService
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/QOTWLeaderboardSubcommand.java:107
↓ 1 callers
Method
edit
Edits a Custom Command. @param old The old custom command. @param update The new custom command. @return The updated {@link CustomTag} object. @th
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/dao/CustomTagRepository.java:60
↓ 1 callers
Method
editCommand
Edits and updates a single {@link CustomTag}. @param guildId The guilds' id. @param old The "old" {@link CustomTag}. @param update The "new" and
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/CustomTagManager.java:200
↓ 1 callers
Method
editMovedFromChannelMessage
(@NotNull SlashCommandInteractionEvent event, @NotNull Message movedFrom, @NotNull Message movedTo)
src/main/java/net/discordjug/javabot/systems/user_commands/MoveConversationCommand.java:120
↓ 1 callers
Method
enableActionRows
(List<MessageTopLevelComponentUnion> actionRows)
src/main/java/net/discordjug/javabot/util/MessageActionUtils.java:56
↓ 1 callers
Method
existsTransactionWithRecipientInChannel
Checks whether a transaction with a specific recipient exists in a specific channel. @param recipient The ID of the recipient @param channelId The ID
src/main/java/net/discordjug/javabot/systems/help/dao/HelpTransactionRepository.java:146
↓ 1 callers
Method
findCodeblock
Method responsible for finding a place to insert a codeblock, if present. @param msg the content of the message. @return a MessageCodeblock instance,
src/main/java/net/discordjug/javabot/systems/help/AutoCodeFormatter.java:47
↓ 1 callers
Method
findDeclaredField
(Class<?> cl, String name)
src/main/java/net/discordjug/javabot/data/config/ReflectionUtils.java:64
↓ 1 callers
Method
formatExperience
(Guild guild, @NotNull HelpAccount account)
src/main/java/net/discordjug/javabot/systems/help/commands/HelpAccountSubcommand.java:153
↓ 1 callers
Method
formatHintEmbed
(Guild guild)
src/main/java/net/discordjug/javabot/systems/help/AutoCodeFormatter.java:168
↓ 1 callers
Method
formatOption
Builds the {@code format} option, generating one choice per {@link Language} (excluding {@link Language#UNKNOWN}) so the enum stays the single source
src/main/java/net/discordjug/javabot/systems/user_commands/format_code/FormatCodeCommand.java:42
↓ 1 callers
Method
fromBufferedReader
Converts a {@link BufferedReader} to a {@link String}. @param in The {@link BufferedReader}. @param from The {@link String}s first line. @param to
src/main/java/net/discordjug/javabot/util/StringUtils.java:54
↓ 1 callers
Method
fromString
Resolves a language from a string (e.g. the value of the /format-code "format" option) by matching its Discord code-fence name, falling back to {@link
src/main/java/net/discordjug/javabot/systems/user_commands/format_code/Language.java:118
↓ 1 callers
Method
generateLeaderboard
Draws and constructs the leaderboard image. @param topMembers the accounts with the top QOTW users @return The finished image as a {@link ByteArrayIn
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/QOTWLeaderboardSubcommand.java:118
↓ 1 callers
Method
generatePlot
(User user)
src/main/java/net/discordjug/javabot/systems/help/commands/HelpAccountSubcommand.java:106
↓ 1 callers
Method
generateRandomName
Generates a random name consisting of a noun, an adjective and a number from 1 to 9999. @return The generated name.
src/main/java/net/discordjug/javabot/listener/PingableNameListener.java:96
↓ 1 callers
Method
getAccounts
Gets a specified amount of {@link HelpAccount}s. @param page The page. @param size The amount of {@link HelpAccount}s to return. @return A {@li
src/main/java/net/discordjug/javabot/systems/help/dao/HelpAccountRepository.java:78
↓ 1 callers
Method
getActiveSubmissions
()
src/main/java/net/discordjug/javabot/systems/qotw/submissions/SubmissionManager.java:100
↓ 1 callers
Method
getAll
Gets all Messages from the Database. @return A {@link List} of {@link CachedMessage}s. @throws SQLException If anything goes wrong.
src/main/java/net/discordjug/javabot/data/h2db/message_cache/dao/MessageCacheRepository.java:82
↓ 1 callers
Method
getAllCustomVoiceChannels
Gets all custom voice channels of all guilds. @return a {@link List} of all custom voice channel IDs
src/main/java/net/discordjug/javabot/systems/custom_vc/CustomVCRepository.java:60
↓ 1 callers
Method
getAllForms
Get all forms from the database. @return A list of forms
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:116
↓ 1 callers
Method
getAllWarns
Gets all warns based on the user id. @param userId The user's id. @return A {@link List} with all warns.
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:199
↓ 1 callers
Method
getAllWarnsByUserId
(long userId)
src/main/java/net/discordjug/javabot/systems/moderation/warn/dao/WarnRepository.java:126
↓ 1 callers
Method
getAvailableMigrations
Finds all all available migrations to run. @return A {@link List} with all Option Choices.
src/main/java/net/discordjug/javabot/data/h2db/commands/MigrateSubcommand.java:71
↓ 1 callers
Method
getByName
Attempts to get a {@link CustomTag}, based on the specified name. @param guildId The guilds' id. @param name The tag's name. @return An {@link Opt
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/CustomTagManager.java:148
↓ 1 callers
Method
getCachedImage
Gets an image from the {@link Map}. @param name The name of the image. @return A {@link BufferedImage}.
src/main/java/net/discordjug/javabot/util/ImageCache.java:40
↓ 1 callers
Method
getClockEmoji
()
src/main/java/net/discordjug/javabot/data/config/SystemsConfig.java:122
↓ 1 callers
Method
getContent
()
src/main/java/net/discordjug/javabot/systems/user_commands/format_code/Code.java:32
↓ 1 callers
Method
getContentFromRawGitHubUrl
(String reqUrl, int from, int to)
src/main/java/net/discordjug/javabot/listener/GitHubLinkListener.java:83
↓ 1 callers
Method
getCurrentFormattedTimestamp
()
src/main/java/net/discordjug/javabot/systems/help/commands/notify/HelpPingSubcommand.java:276
↓ 1 callers
Method
getCurrentQOTWChampions
Gets the currently configured QOTW champions. @param guildId the ID of the guild to get the champions @return a {@link List} containing the Discord us
src/main/java/net/discordjug/javabot/systems/qotw/dao/QOTWChampionRepository.java:24
↓ 1 callers
Method
getDiscordName
()
src/main/java/net/discordjug/javabot/systems/user_commands/format_code/Language.java:106
↓ 1 callers
Method
getDisplayName
()
src/main/java/net/discordjug/javabot/systems/user_commands/format_code/Language.java:102
↓ 1 callers
Method
getDownvoteEmote
(JDA jda)
src/main/java/net/discordjug/javabot/data/config/SystemsConfig.java:118
↓ 1 callers
Method
getEntryByStarboardMessageId
Gets a {@link StarboardEntry} by its starboard message id. @param starboardMessageId The entries' starboard message id. @return The {@link StarboardE
src/main/java/net/discordjug/javabot/systems/starboard/dao/StarboardRepository.java:75
↓ 1 callers
Method
getGameActivityDetails
(@NotNull Activity activity)
src/main/java/net/discordjug/javabot/systems/user_commands/ProfileCommand.java:133
↓ 1 callers
Method
getGameActivityType
(@NotNull Activity activity)
src/main/java/net/discordjug/javabot/systems/user_commands/ProfileCommand.java:127
↓ 1 callers
Method
getImageFromUrl
Gets an Image from the specified URL. @param url The url of the image. @return The image as a {@link BufferedImage} @throws IOException If an error o
src/main/java/net/discordjug/javabot/util/ImageGenerationUtils.java:27
↓ 1 callers
Method
getIncrementCount
(Member targetMember, SlashCommandInteractionEvent event)
src/main/java/net/discordjug/javabot/systems/qotw/commands/qotw_points/ChangePointsSubcommand.java:68
↓ 1 callers
Method
getLastInteractionTimestamp
(Message msg)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/ClearOldHelpNotificationJob.java:86
↓ 1 callers
Method
getLatestQOTWMessage
(@NotNull MessageChannel channel, QOTWConfig config, JDA jda)
src/main/java/net/discordjug/javabot/systems/qotw/jobs/QOTWCloseSubmissionsJob.java:215
↓ 1 callers
Method
getLogicalSize
Gets the logical size of a single database table in bytes. @param table The database table. @return The logical size, in bytes.
src/main/java/net/discordjug/javabot/data/h2db/DbActions.java:130
↓ 1 callers
Method
getMessageDeleteVoteThreshold
Gets the threshold needed to remove a message. If a message has <code>U</code> upvotes and <code>D</code> downvotes, we compute the difference as <cod
src/main/java/net/discordjug/javabot/listener/ForumPostVoteListener.java:55
↓ 1 callers
Method
getMessagesAfter
Retrieves all cached messages that were sent after a passed timestamp. @param timestamp the timestamp since when messages should be received @return t
src/main/java/net/discordjug/javabot/data/h2db/message_cache/MessageCache.java:167
↓ 1 callers
Method
getMessagesByUser
(@NotNull ThreadChannel channel, User user)
src/main/java/net/discordjug/javabot/systems/qotw/submissions/SubmissionManager.java:266
↓ 1 callers
Method
getNextQuestionNumber
Gets the next Question's week number. @return The next Question's week number as an integer. @throws SQLException If an error occurs.
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionQueueRepository.java:68
↓ 1 callers
Method
getNotificationThreadChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:166
↓ 1 callers
Method
getPattern
Get the pattern for a given Indentation type. @return the pattern to be used for indenting.
src/main/java/net/discordjug/javabot/util/IndentationHelper.java:49
↓ 1 callers
Method
getPointsAtDate
Gets the number points given to a user at a certain date. @param userId the ID of the user @param date the date where the points are given to that us
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionPointsRepository.java:55
↓ 1 callers
Method
getPostHelpers
()
src/main/java/net/discordjug/javabot/systems/help/HelpManager.java:236
↓ 1 callers
Method
getProjectChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:138
← previous
next →
401–500 of 1,112, ranked by callers