MCPcopy Create free account

hub / github.com/Java-Discord/JavaBot / functions

Functions1,112 in github.com/Java-Discord/JavaBot

↓ 2 callersMethodcanCreateSubmissions
(Member member)
src/main/java/net/discordjug/javabot/systems/qotw/submissions/SubmissionManager.java:178
↓ 2 callersMethodcancelled
()
src/main/java/net/discordjug/javabot/systems/user_commands/ChangeMyMindCommand.java:82
↓ 2 callersMethodchangeVisibility
(ButtonInteractionEvent event, Button newButton, String messageContent, BiConsumer<PermissionOverrideAction
src/main/java/net/discordjug/javabot/systems/custom_vc/CustomVCButtonHandler.java:54
↓ 2 callersMethodcheckContentAutomod
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 callersMethodcheckNickname
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 callersMethodcheckUrl
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 callersMethodcleanString
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 callersMethodcloseAllPostsOfUser
(ForumChannel channel, User user, Guild guild)
src/main/java/net/discordjug/javabot/listener/UserLeaveListener.java:62
↓ 2 callersMethodcomputeSHA
(Attachment attachment)
src/main/java/net/discordjug/javabot/listener/filter/MessageRuleFilter.java:115
↓ 2 callersMethodcountReactions
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 callersMethodcreateAcknowledgementButton
(String postId)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/HelpPingSubcommand.java:166
↓ 2 callersMethodcreateCloseSuggestionButton
(ThreadChannel post)
src/main/java/net/discordjug/javabot/systems/help/HelpListener.java:197
↓ 2 callersMethodcreateDeleteInteractionId
(long senderId)
src/main/java/net/discordjug/javabot/util/InteractionUtils.java:122
↓ 2 callersMethodcreateMakePrivateButton
()
src/main/java/net/discordjug/javabot/systems/custom_vc/CustomVCButtonHandler.java:28
↓ 2 callersMethodcreateNewMessage
(TextChannel staffActivityChannel, Member member, StaffActivityType type, TemporalAccessor timestamp)
src/main/java/net/discordjug/javabot/systems/staff_activity/StaffActivityService.java:104
↓ 2 callersMethodcreateReportThread
(Message message, long targetId, ModerationConfig config, Consumer<ThreadChannel> onSuccess)
src/main/java/net/discordjug/javabot/systems/moderation/report/ReportManager.java:260
↓ 2 callersMethodcreateStaffActivityEmbedWithEntry
(Member member, StaffActivityType type, TemporalAccessor timestamp)
src/main/java/net/discordjug/javabot/systems/staff_activity/StaffActivityService.java:112
↓ 2 callersMethodcreateSubmissionModal
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 callersMethodcreateUserData
(Guild guild, double experience, long userId)
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/ExperienceLeaderboardSubcommand.java:163
↓ 2 callersMethoddeclineSubmission
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 callersMethoddelete
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 callersMethoddoAutomodActions
(Message message, String reason)
src/main/java/net/discordjug/javabot/systems/moderation/AutoMod.java:142
↓ 2 callersMethoddrawLeaderboardEntry
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 callersMethodeditFormMessageButtons
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 callersMethodexecuteForAllOpenPostsOfUser
(Guild guild, User user, ForumChannel forum, Consumer<ThreadChannel> toExecute)
src/main/java/net/discordjug/javabot/listener/UserLeaveListener.java:75
↓ 2 callersMethodfindById
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 callersMethodfindById
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 callersMethodfindByQuestionNumber
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 callersMethodfindRankOfMember
(Member member, List<Pair<QOTWAccount, Member>> topMembers)
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/QOTWLeaderboardSubcommand.java:90
↓ 2 callersMethodflush
Saves this config to its file path.
src/main/java/net/discordjug/javabot/data/config/GuildConfig.java:115
↓ 2 callersMethodformatDurationToNow
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 callersMethodformatUptime
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 callersMethodgetActiveWarnsByUserId
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 callersMethodgetActivity
(@NotNull Member member, boolean customActivity)
src/main/java/net/discordjug/javabot/systems/user_commands/ProfileCommand.java:121
↓ 2 callersMethodgetAdminRole
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:158
↓ 2 callersMethodgetAllowedChoices
()
src/main/java/net/discordjug/javabot/systems/user_preferences/model/PreferenceType.java:9
↓ 2 callersMethodgetApplicationChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:126
↓ 2 callersMethodgetButtonStream
(Message message)
src/main/java/net/discordjug/javabot/systems/help/HelpListener.java:277
↓ 2 callersMethodgetById
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 callersMethodgetByUserId
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 callersMethodgetCacheName
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 callersMethodgetCurrentExperienceGoal
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 callersMethodgetCustomTagsByGuildId
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 callersMethodgetHelpForumChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/HelpConfig.java:138
↓ 2 callersMethodgetHelpNotificationChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/HelpConfig.java:146
↓ 2 callersMethodgetHelperRole
()
src/main/java/net/discordjug/javabot/data/config/guild/HelpConfig.java:142
↓ 2 callersMethodgetImageBytes
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 callersMethodgetJobChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:142
↓ 2 callersMethodgetLoadedCommands
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 callersMethodgetMaxPage
(int totalAccounts)
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/ExperienceLeaderboardSubcommand.java:112
↓ 2 callersMethodgetMetricsCategory
()
src/main/java/net/discordjug/javabot/data/config/guild/MetricsConfig.java:19
↓ 2 callersMethodgetNextExperienceGoal
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 callersMethodgetNextQuestion
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 callersMethodgetNumberOfChars
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 callersMethodgetNumberOfUsersWithHelpXPInLastMonth
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 callersMethodgetOperatingSystem
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 callersMethodgetOptionalSubmitMessage
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 callersMethodgetOrCreateAccount
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 callersMethodgetOutputStreamFromImage
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 callersMethodgetPotentialRaiders
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 callersMethodgetPreviousExperienceGoal
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 callersMethodgetQuestions
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 callersMethodgetReportChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:118
↓ 2 callersMethodgetSubmissionsForumOngoingReviewTag
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 callersMethodgetSuggestionChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:134
↓ 2 callersMethodgetTotalAccounts
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 callersMethodhandleMessageEvent
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 callersMethodhandleModerationUserCommand
(@Nonnull SlashCommandInteractionEvent event, @Nonnull Member commandUser, @Nonnull User target, @Nullable Str
src/main/java/net/discordjug/javabot/systems/moderation/ModerateUserCommand.java:52
↓ 2 callersMethodhandlePropertyAutocomplete
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 callersMethodhandleReactionEvent
(Guild guild, Emoji emoji, MessageChannel channel, long messageId)
src/main/java/net/discordjug/javabot/systems/starboard/StarboardManager.java:62
↓ 2 callersMethodhandleReactionEvent
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 callersMethodhandleThanksCloseButton
(@NotNull ButtonInteractionEvent event, HelpManager manager, ThreadChannel post, String additionalButtonId)
src/main/java/net/discordjug/javabot/systems/help/HelpListener.java:287
↓ 2 callersMethodhandleUserReport
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 callersMethodhasButtonWithText
(Message msg, String expectedText)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/ClearOldHelpNotificationJob.java:95
↓ 2 callersMethodhasSubmitted
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 callersMethodignoreMessageCache
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 callersMethodinitializeSchema
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 callersMethodinsert
(UserPreference instance)
src/main/java/net/discordjug/javabot/systems/user_preferences/dao/UserPreferenceRepository.java:46
↓ 2 callersMethodisEscaped
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 callersMethodisInvalidChannel
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 callersMethodisInvalidUser
(User user)
src/main/java/net/discordjug/javabot/systems/starboard/StarboardManager.java:120
↓ 2 callersMethodisOpen
(FormData data)
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/FormInteractionManager.java:266
↓ 2 callersMethodisReasonInvalid
(String reason)
src/main/java/net/discordjug/javabot/systems/help/commands/UnreserveCommand.java:132
↓ 2 callersMethodkick
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 callersMethodloadGuilds
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 callersMethodloadOrCreate
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 callersMethodlockServer
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 callersMethodmapQuery
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 callersMethodmodify
(PreparedStatement s)
src/main/java/net/discordjug/javabot/data/h2db/StatementModifier.java:11
↓ 2 callersMethodonCloseRequest
(Interaction interaction, IReplyCallback replyCallback, MessageChannelUnion channel, String reason, Runnable n
src/main/java/net/discordjug/javabot/systems/help/commands/UnreserveCommand.java:106
↓ 2 callersMethodparseExpiration
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 callersMethodperformTransaction
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 callersMethodplot
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 callersMethodread
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 callersMethodread
(ResultSet rs)
src/main/java/net/discordjug/javabot/systems/help/dao/HelpTransactionRepository.java:81
↓ 2 callersMethodread
(@NotNull ResultSet rs)
src/main/java/net/discordjug/javabot/systems/help/dao/HelpAccountRepository.java:119
↓ 2 callersMethodreadStrings
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 callersMethodremoveCachedImagesByKeyword
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 callersMethodremoveCustomVoiceChannel
Removes a custom voice channel. @param id the channel ID
src/main/java/net/discordjug/javabot/systems/custom_vc/CustomVCRepository.java:32
↓ 2 callersMethodreplaceActivityEmbedField
(MessageEmbed embed, StaffActivityType type, TemporalAccessor timestamp)
src/main/java/net/discordjug/javabot/systems/staff_activity/StaffActivityService.java:92
← previousnext →201–300 of 1,112, ranked by callers