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
↓ 2 callers
Method
canCreateSubmissions
(Member member)
src/main/java/net/discordjug/javabot/systems/qotw/submissions/SubmissionManager.java:178
↓ 2 callers
Method
cancelled
()
src/main/java/net/discordjug/javabot/systems/user_commands/ChangeMyMindCommand.java:82
↓ 2 callers
Method
changeVisibility
(ButtonInteractionEvent event, Button newButton, String messageContent, BiConsumer<PermissionOverrideAction
src/main/java/net/discordjug/javabot/systems/custom_vc/CustomVCButtonHandler.java:54
↓ 2 callers
Method
checkContentAutomod
Runs all automod checks only depend on the message content. @param message the {@link Message} that should be checked
src/main/java/net/discordjug/javabot/systems/moderation/AutoMod.java:130
↓ 2 callers
Method
checkNickname
Checks whether the given {@link Member}'s nickname should be changed. @param member The {@link Member} to check.
src/main/java/net/discordjug/javabot/listener/PingableNameListener.java:61
↓ 2 callers
Method
checkUrl
Checks if the specified string url is a valid {@link URL}. @param url The provided URL. @return Whether the specified url is a valid {@link URL}.
src/main/java/net/discordjug/javabot/util/Checks.java:84
↓ 2 callers
Method
cleanString
Cleans the given String by removing all whitespaces and slashes, so it can be used for custom tags. @param s The string that should be cleaned. @retu
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/CustomTagManager.java:48
↓ 2 callers
Method
closeAllPostsOfUser
(ForumChannel channel, User user, Guild guild)
src/main/java/net/discordjug/javabot/listener/UserLeaveListener.java:62
↓ 2 callers
Method
computeSHA
(Attachment attachment)
src/main/java/net/discordjug/javabot/listener/filter/MessageRuleFilter.java:115
↓ 2 callers
Method
countReactions
Counts the amount of reactions on a single message. @param msg The {@link Message}. @param emoji The {@link Emoji} which should be counted. @return
src/main/java/net/discordjug/javabot/util/StringUtils.java:176
↓ 2 callers
Method
createAcknowledgementButton
(String postId)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/HelpPingSubcommand.java:166
↓ 2 callers
Method
createCloseSuggestionButton
(ThreadChannel post)
src/main/java/net/discordjug/javabot/systems/help/HelpListener.java:197
↓ 2 callers
Method
createDeleteInteractionId
(long senderId)
src/main/java/net/discordjug/javabot/util/InteractionUtils.java:122
↓ 2 callers
Method
createMakePrivateButton
()
src/main/java/net/discordjug/javabot/systems/custom_vc/CustomVCButtonHandler.java:28
↓ 2 callers
Method
createNewMessage
(TextChannel staffActivityChannel, Member member, StaffActivityType type, TemporalAccessor timestamp)
src/main/java/net/discordjug/javabot/systems/staff_activity/StaffActivityService.java:104
↓ 2 callers
Method
createReportThread
(Message message, long targetId, ModerationConfig config, Consumer<ThreadChannel> onSuccess)
src/main/java/net/discordjug/javabot/systems/moderation/report/ReportManager.java:260
↓ 2 callers
Method
createStaffActivityEmbedWithEntry
(Member member, StaffActivityType type, TemporalAccessor timestamp)
src/main/java/net/discordjug/javabot/systems/staff_activity/StaffActivityService.java:112
↓ 2 callers
Method
createSubmissionModal
Creates a submission modal for the given form. @param form form to open submission modal for. @return submission modal to be presented to the user.
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/FormInteractionManager.java:231
↓ 2 callers
Method
createUserData
(Guild guild, double experience, long userId)
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/ExperienceLeaderboardSubcommand.java:163
↓ 2 callers
Method
declineSubmission
Declines a submission. @param thread The submission's {@link ThreadChannel}. @param author The submissions' author. @param reviewedBy The reviewer @p
src/main/java/net/discordjug/javabot/systems/qotw/submissions/SubmissionManager.java:259
↓ 2 callers
Method
delete
Deletes a message, only if the person deleting the message is the author of the message, a staff member, or the owner. @param interaction The button
src/main/java/net/discordjug/javabot/util/InteractionUtils.java:91
↓ 2 callers
Method
doAutomodActions
(Message message, String reason)
src/main/java/net/discordjug/javabot/systems/moderation/AutoMod.java:142
↓ 2 callers
Method
drawLeaderboardEntry
adds a single entry in the leaderboard. @param member the {@link Member} this entry is responsible for or {@code null} if no member can be associated
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/LeaderboardCreator.java:79
↓ 2 callers
Method
editFormMessageButtons
Modifies buttons in a message using given function for mapping. @param msg message to modify buttons in. @param editFunction function to edi
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/FormInteractionManager.java:180
↓ 2 callers
Method
executeForAllOpenPostsOfUser
(Guild guild, User user, ForumChannel forum, Consumer<ThreadChannel> toExecute)
src/main/java/net/discordjug/javabot/listener/UserLeaveListener.java:75
↓ 2 callers
Method
findById
Finds a warn by its id. @param id The id of the warn. @return The warn, if it was found. @throws SQLException If an error occurs.
src/main/java/net/discordjug/javabot/systems/moderation/warn/dao/WarnRepository.java:57
↓ 2 callers
Method
findById
Finds a custom command by its id. @param id The id of the custom command. @return The custom command, if it was found. @throws SQLException If an err
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/dao/CustomTagRepository.java:104
↓ 2 callers
Method
findByQuestionNumber
Gets a {@link QOTWQuestion} by its Question Number. @param questionNumber The question's number. @return The question as an {@link Optional} @throws
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionQueueRepository.java:53
↓ 2 callers
Method
findRankOfMember
(Member member, List<Pair<QOTWAccount, Member>> topMembers)
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/QOTWLeaderboardSubcommand.java:90
↓ 2 callers
Method
flush
Saves this config to its file path.
src/main/java/net/discordjug/javabot/data/config/GuildConfig.java:115
↓ 2 callers
Method
formatDurationToNow
Shortcut to get a formatted duration string representing the duration from the given time to now. @param time The time to use. @return A string repre
src/main/java/net/discordjug/javabot/util/TimeUtils.java:89
↓ 2 callers
Method
formatUptime
Calculates the Uptimes and returns a formatted String. @return The current Uptime as a String.
src/main/java/net/discordjug/javabot/util/StringUtils.java:155
↓ 2 callers
Method
getActiveWarnsByUserId
Gets all warns for the given user, which were created after the given cutoff, and haven't been discarded. @param userId The id of the user. @param cu
src/main/java/net/discordjug/javabot/systems/moderation/warn/dao/WarnRepository.java:121
↓ 2 callers
Method
getActivity
(@NotNull Member member, boolean customActivity)
src/main/java/net/discordjug/javabot/systems/user_commands/ProfileCommand.java:121
↓ 2 callers
Method
getAdminRole
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:158
↓ 2 callers
Method
getAllowedChoices
()
src/main/java/net/discordjug/javabot/systems/user_preferences/model/PreferenceType.java:9
↓ 2 callers
Method
getApplicationChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:126
↓ 2 callers
Method
getButtonStream
(Message message)
src/main/java/net/discordjug/javabot/systems/help/HelpListener.java:277
↓ 2 callers
Method
getById
Gets a specific preference value of a user. @param userId the ID of the user @param preference the preference to obtain the value from @return An {@li
src/main/java/net/discordjug/javabot/systems/user_preferences/dao/UserPreferenceRepository.java:32
↓ 2 callers
Method
getByUserId
Returns a {@link QOTWAccount} based on the given user Id. @param userId The discord Id of the user. @param startDate The earliest date where points a
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionPointsRepository.java:33
↓ 2 callers
Method
getCacheName
Builds the cached image's name. @param topMembers the accounts with the top QOTW users @return The image's cache name.
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/QOTWLeaderboardSubcommand.java:133
↓ 2 callers
Method
getCurrentExperienceGoal
Tries to get the current experience role. @param botConfig main configuration. @param guild The current {@link Guild}. @return A {@link Pair} with bo
src/main/java/net/discordjug/javabot/systems/help/model/HelpAccount.java:39
↓ 2 callers
Method
getCustomTagsByGuildId
Gets all custom commands for the given guild. @param guildId The id of the guild. @return A List with all custom commands.
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/dao/CustomTagRepository.java:119
↓ 2 callers
Method
getHelpForumChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/HelpConfig.java:138
↓ 2 callers
Method
getHelpNotificationChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/HelpConfig.java:146
↓ 2 callers
Method
getHelperRole
()
src/main/java/net/discordjug/javabot/data/config/guild/HelpConfig.java:142
↓ 2 callers
Method
getImageBytes
convert the drawn image to a {@code byte[]}. This also caches the image and invalidates all caches matching {@code invalidateCacheKeyword} @param cac
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/LeaderboardCreator.java:121
↓ 2 callers
Method
getJobChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:142
↓ 2 callers
Method
getLoadedCommands
Gets all loaded {@link CustomTag}s for the specified {@link Guild}. @param guildId The {@link Guild}s id. @return An unmodifiable {@link Set} of all
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/CustomTagManager.java:137
↓ 2 callers
Method
getMaxPage
(int totalAccounts)
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/ExperienceLeaderboardSubcommand.java:112
↓ 2 callers
Method
getMetricsCategory
()
src/main/java/net/discordjug/javabot/data/config/guild/MetricsConfig.java:19
↓ 2 callers
Method
getNextExperienceGoal
Tries to get the next experience goal based on the current experience count. @param botConfig main configuration. @param guild The current {@link Gui
src/main/java/net/discordjug/javabot/systems/help/model/HelpAccount.java:73
↓ 2 callers
Method
getNextQuestion
Retrieves the next question. @param guildId The current guild's id. @return The next {@link QOTWQuestion} as an {@link Optional} @throws DataAccessEx
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionQueueRepository.java:132
↓ 2 callers
Method
getNumberOfChars
Returns the number of characters a pattern is using. @return the number of characters the pattern of this type consists of.
src/main/java/net/discordjug/javabot/util/IndentationHelper.java:58
↓ 2 callers
Method
getNumberOfUsersWithHelpXPInLastMonth
Gets the number of users that earned help XP in the last 30 days. This corresponds to the number of elements in {@link HelpTransactionRepository#getTo
src/main/java/net/discordjug/javabot/systems/help/dao/HelpTransactionRepository.java:120
↓ 2 callers
Method
getOperatingSystem
Tries to get the current operating system. @return The current operating system, as a {@link String}.
src/main/java/net/discordjug/javabot/util/StringUtils.java:128
↓ 2 callers
Method
getOptionalSubmitMessage
Get this form's submit message as an {@link Optional}. If the message is null or blank, the returned optional will be empty. @return optional submit
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/model/FormData.java:58
↓ 2 callers
Method
getOrCreateAccount
Creates a new Help Account if none exists. @param userId The user's id. @return An {@link HelpAccount} object. @throws DataAccessException If an erro
src/main/java/net/discordjug/javabot/systems/help/HelpExperienceService.java:47
↓ 2 callers
Method
getOutputStreamFromImage
Retrieves the image's {@link ByteArrayOutputStream}. @param image The image. @return The image's {@link ByteArrayOutputStream}. @throws IOException I
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/LeaderboardCreator.java:151
↓ 2 callers
Method
getPotentialRaiders
We use the following criteria to build a list of recently joined members who might be potential raiders. <ul> <li>More than a threshold number of
src/main/java/net/discordjug/javabot/systems/moderation/server_lock/ServerLockManager.java:134
↓ 2 callers
Method
getPreviousExperienceGoal
Tries to get the last experience goal. @param botConfig main configuration. @param guild The current {@link Guild}. @return The {@link Pair} with bot
src/main/java/net/discordjug/javabot/systems/help/model/HelpAccount.java:57
↓ 2 callers
Method
getQuestions
Gets as many Questions as specified. @param guildId The current guild's id. @param page The page. @param size The amount of questions to return
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionQueueRepository.java:106
↓ 2 callers
Method
getReportChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:118
↓ 2 callers
Method
getSubmissionsForumOngoingReviewTag
Gets a {@link ForumTag} based on the specified name. @return The specified {@link ForumTag} or null if there is no tag matching the specified name.
src/main/java/net/discordjug/javabot/data/config/guild/QOTWConfig.java:58
↓ 2 callers
Method
getSuggestionChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:134
↓ 2 callers
Method
getTotalAccounts
Gets the total amount of {@link HelpAccount}s stored in the database, that have more than 0 experience. @return The amount, as an {@link Integer}. @t
src/main/java/net/discordjug/javabot/systems/help/dao/HelpAccountRepository.java:89
↓ 2 callers
Method
handleMessageEvent
called by {@link HelpListener#onMessageReceived(MessageReceivedEvent)} on every message. It is worth noting that this class can't register as an event
src/main/java/net/discordjug/javabot/systems/help/AutoCodeFormatter.java:76
↓ 2 callers
Method
handleModerationUserCommand
(@Nonnull SlashCommandInteractionEvent event, @Nonnull Member commandUser, @Nonnull User target, @Nullable Str
src/main/java/net/discordjug/javabot/systems/moderation/ModerateUserCommand.java:52
↓ 2 callers
Method
handlePropertyAutocomplete
autocompletes a property. @param event the {@link CommandAutoCompleteInteractionEvent} used for sending the autocomplete information @param partialTex
src/main/java/net/discordjug/javabot/systems/configuration/ConfigSubcommand.java:65
↓ 2 callers
Method
handleReactionEvent
(Guild guild, Emoji emoji, MessageChannel channel, long messageId)
src/main/java/net/discordjug/javabot/systems/starboard/StarboardManager.java:62
↓ 2 callers
Method
handleReactionEvent
Handles voting reaction events, including both the addition and removal of votes. Note that this is a blocking method. @param event The reaction even
src/main/java/net/discordjug/javabot/listener/ForumPostVoteListener.java:159
↓ 2 callers
Method
handleThanksCloseButton
(@NotNull ButtonInteractionEvent event, HelpManager manager, ThreadChannel post, String additionalButtonId)
src/main/java/net/discordjug/javabot/systems/help/HelpListener.java:287
↓ 2 callers
Method
handleUserReport
Handles a single user report. @param hook The {@link InteractionHook} to respond to. @param reason The reason for reporting this user. @param targetI
src/main/java/net/discordjug/javabot/systems/moderation/report/ReportManager.java:191
↓ 2 callers
Method
hasButtonWithText
(Message msg, String expectedText)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/ClearOldHelpNotificationJob.java:95
↓ 2 callers
Method
hasSubmitted
Checks if a user already submitted the form. @param user user to check @param form form to check on @return true if the user has submitted at leas on
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:186
↓ 2 callers
Method
ignoreMessageCache
Checks whether the given message should be ignored by the cache. <p> This is done with the following criteria: <ol> <li>Message author is a bot</l
src/main/java/net/discordjug/javabot/data/h2db/message_cache/MessageCacheListener.java:75
↓ 2 callers
Method
initializeSchema
Initializes the schema of the database by running all SQL statements from the schema.sql script. @param dataSource the {@link DataSource} to connect t
src/main/java/net/discordjug/javabot/data/h2db/DbHelper.java:104
↓ 2 callers
Method
insert
(UserPreference instance)
src/main/java/net/discordjug/javabot/systems/user_preferences/dao/UserPreferenceRepository.java:46
↓ 2 callers
Method
isEscaped
Determines if the character in the StringBuilder at the specified position is escaped. @param builder the StringBuilder which holds the current Strin
src/main/java/net/discordjug/javabot/util/IndentationHelper.java:197
↓ 2 callers
Method
isInvalidChannel
Checks if the specified {@link Member} does have the required permissions in order to move the conversation to the specified channel. @param member
src/main/java/net/discordjug/javabot/systems/user_commands/MoveConversationCommand.java:97
↓ 2 callers
Method
isInvalidUser
(User user)
src/main/java/net/discordjug/javabot/systems/starboard/StarboardManager.java:120
↓ 2 callers
Method
isOpen
(FormData data)
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/FormInteractionManager.java:266
↓ 2 callers
Method
isReasonInvalid
(String reason)
src/main/java/net/discordjug/javabot/systems/help/commands/UnreserveCommand.java:132
↓ 2 callers
Method
kick
Kicks a member. @param user The user to kick. @param reason The reason for kicking the member. @param kickedBy The member who is responsible for
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:312
↓ 2 callers
Method
loadGuilds
Loads a set of guilds into the configuration at runtime. @param guilds The list of guilds to load config for.
src/main/java/net/discordjug/javabot/data/config/BotConfig.java:90
↓ 2 callers
Method
loadOrCreate
Loads an instance of the configuration from the given path, or creates a new empty configuration file there if none exists yet. @param guild The guil
src/main/java/net/discordjug/javabot/data/config/GuildConfig.java:71
↓ 2 callers
Method
lockServer
Locks a server when a raid has been detected. @param guild The guild to lock. @param potentialRaiders The list of members that we think ar
src/main/java/net/discordjug/javabot/systems/moderation/server_lock/ServerLockManager.java:226
↓ 2 callers
Method
mapQuery
Maps a query. @param query The query. @param modifier The {@link StatementModifier}. @param mapper The {@link ResultSetMapper}. @param <T>
src/main/java/net/discordjug/javabot/data/h2db/DbActions.java:35
↓ 2 callers
Method
modify
(PreparedStatement s)
src/main/java/net/discordjug/javabot/data/h2db/StatementModifier.java:11
↓ 2 callers
Method
onCloseRequest
(Interaction interaction, IReplyCallback replyCallback, MessageChannelUnion channel, String reason, Runnable n
src/main/java/net/discordjug/javabot/systems/help/commands/UnreserveCommand.java:106
↓ 2 callers
Method
parseExpiration
Gets expiration time from the slash comamnd event. @param event slash event to get expiration from. @return an optional containing expiration time, o
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/FormInteractionManager.java:245
↓ 2 callers
Method
performTransaction
Performs a single transaction. @param recipient The recipient's user id. @param value The transaction's value. @param guild The current guild
src/main/java/net/discordjug/javabot/systems/help/HelpExperienceService.java:87
↓ 2 callers
Method
plot
Create a diagram from the data supplied to the constructor. @return the diagram as a {@link BufferedImage}
src/main/java/net/discordjug/javabot/util/Plotter.java:32
↓ 2 callers
Method
read
Reads a {@link ResultSet} and returns a new {@link QOTWAccount} object. @param rs The query's ResultSet. @return The {@link QOTWAccount} object. @thr
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionPointsRepository.java:125
↓ 2 callers
Method
read
(ResultSet rs)
src/main/java/net/discordjug/javabot/systems/help/dao/HelpTransactionRepository.java:81
↓ 2 callers
Method
read
(@NotNull ResultSet rs)
src/main/java/net/discordjug/javabot/systems/help/dao/HelpAccountRepository.java:119
↓ 2 callers
Method
readStrings
Reads strings from the given URL to a {@link List}, removes words with a dash. @param url The URL to read. @return A {@link List} of Strings.
src/main/java/net/discordjug/javabot/listener/PingableNameListener.java:107
↓ 2 callers
Method
removeCachedImagesByKeyword
Removes an image from the {@link Map} whose name contains the specified keyword. @param keyword The keyword. @return A {@link BufferedImage}.
src/main/java/net/discordjug/javabot/util/ImageCache.java:51
↓ 2 callers
Method
removeCustomVoiceChannel
Removes a custom voice channel. @param id the channel ID
src/main/java/net/discordjug/javabot/systems/custom_vc/CustomVCRepository.java:32
↓ 2 callers
Method
replaceActivityEmbedField
(MessageEmbed embed, StaffActivityType type, TemporalAccessor timestamp)
src/main/java/net/discordjug/javabot/systems/staff_activity/StaffActivityService.java:92
← previous
next →
201–300 of 1,112, ranked by callers