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
getQOTWChampionRole
()
src/main/java/net/discordjug/javabot/data/config/guild/QOTWConfig.java:49
↓ 1 callers
Method
getQuestionNumberFromEmbed
(@NotNull MessageEmbed embed)
src/main/java/net/discordjug/javabot/systems/qotw/jobs/QOTWCloseSubmissionsJob.java:211
↓ 1 callers
Method
getReactionCountForEmote
Attemps to get the amount of reactions for the given emote. @param emoji The emote. @param message The message. @return The amount of reactions.
src/main/java/net/discordjug/javabot/systems/starboard/StarboardManager.java:131
↓ 1 callers
Method
getReportUserThreadHolder
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:122
↓ 1 callers
Method
getRequiredEntity
()
src/main/java/net/discordjug/javabot/api/exception/InvalidEntityIdException.java:18
↓ 1 callers
Method
getShareKnowledgeChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:150
↓ 1 callers
Method
getStaffActivityChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:146
↓ 1 callers
Method
getSubmissionsCountPerUser
Get all submissions of this form in a user -> count map. @param form a form to get submissions for @return a map of users and the number of their sub
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:140
↓ 1 callers
Method
getTopAccounts
Gets a specified amount of {@link QOTWAccount}s. @param startDate the minimum date points are considered @param page The page, starting at 1. @param
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionPointsRepository.java:100
↓ 1 callers
Method
getTopMembers
Gets the top N members from a guild based on their QOTW-Points. @param n The amount of members to get. @param guild The current guild. @return A
src/main/java/net/discordjug/javabot/systems/qotw/QOTWPointsService.java:113
↓ 1 callers
Method
getTotalSubmissionsCount
Get a count of logged submissions for the given form. @param form form to get submission for @return A total number of logged submission
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:172
↓ 1 callers
Method
getTotalTransactionWeightByMonth
Gets the total earned XP of a user since a specific timestamp grouped by months. @param userId the user to get XP from @param start the start timestam
src/main/java/net/discordjug/javabot/systems/help/dao/HelpTransactionRepository.java:98
↓ 1 callers
Method
getTotalTransactionWeightByMonthAndUsers
Gets the total earned XP of a user since a specific timestamp grouped by months and users. @param start the start timestamp @return a list consisting
src/main/java/net/discordjug/javabot/systems/help/dao/HelpTransactionRepository.java:109
↓ 1 callers
Method
getUpvoteEmoji
(MessageReactionAddEvent event)
src/main/java/net/discordjug/javabot/listener/VotingRegulationListener.java:47
↓ 1 callers
Method
getUpvoteEmote
(JDA jda)
src/main/java/net/discordjug/javabot/data/config/SystemsConfig.java:114
↓ 1 callers
Method
getUsersWithSpecificScore
Gets all users with a specific score starting from a specific date. @param startDate the minimum date points are considered @param score the score use
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionPointsRepository.java:112
↓ 1 callers
Method
getWarns
Gets warns based on the user id. @param guild The guild to check @param userId The user's id. @return A {@link List} with all warns.
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:181
↓ 1 callers
Method
getWebhookChannel
(MessageChannelUnion channel)
src/main/java/net/discordjug/javabot/listener/MessageLinkListener.java:58
↓ 1 callers
Method
getWebhookChannelFromParentChannel
(MessageChannelUnion childChannel)
src/main/java/net/discordjug/javabot/listener/MessageLinkListener.java:66
↓ 1 callers
Method
handleAddField
(@NotNull ModalInteractionEvent event, Message message, MessageEmbed embed)
src/main/java/net/discordjug/javabot/systems/staff_commands/embeds/AddEmbedFieldSubcommand.java:114
↓ 1 callers
Method
handleAuthorModal
(@NotNull ModalInteractionEvent event, @NotNull Message message, MessageEmbed embed)
src/main/java/net/discordjug/javabot/systems/staff_commands/embeds/EditEmbedSubcommand.java:249
↓ 1 callers
Method
handleCommand
(SlashCommandInteractionEvent event, long guildId)
src/main/java/net/discordjug/javabot/systems/qotw/commands/QOTWSubcommand.java:33
↓ 1 callers
Method
handleConfigSubcommand
(@Nonnull SlashCommandInteractionEvent event, @Nonnull GuildConfig config)
src/main/java/net/discordjug/javabot/systems/configuration/ConfigSubcommand.java:58
↓ 1 callers
Method
handleCustomTag
Handles a single {@link CustomTag}. @param event The {@link SlashCommandInteractionEvent} which was fired. @param tag The corresponding {@link Cust
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/CustomTagManager.java:83
↓ 1 callers
Method
handleCustomTagsSubcommand
(@NotNull SlashCommandInteractionEvent event)
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/commands/TagsSubcommand.java:48
↓ 1 callers
Method
handleEmbedSubcommand
(SlashCommandInteractionEvent event, long messageId, GuildMessageChannel channel)
src/main/java/net/discordjug/javabot/systems/staff_commands/embeds/EmbedSubcommand.java:46
↓ 1 callers
Method
handleFooterTimestampModal
(@NotNull ModalInteractionEvent event, @NotNull Message message, MessageEmbed embed)
src/main/java/net/discordjug/javabot/systems/staff_commands/embeds/EditEmbedSubcommand.java:333
↓ 1 callers
Method
handleHelpThanksInteraction
(@NotNull ButtonInteractionEvent event, @NotNull HelpManager manager, String @NotNull [] id)
src/main/java/net/discordjug/javabot/systems/help/HelpListener.java:246
↓ 1 callers
Method
handleImageThumbnailModal
(@NotNull ModalInteractionEvent event, @NotNull Message message, MessageEmbed embed)
src/main/java/net/discordjug/javabot/systems/staff_commands/embeds/EditEmbedSubcommand.java:312
↓ 1 callers
Method
handleMessageReport
(ModalInteractionEvent event, String messageId)
src/main/java/net/discordjug/javabot/systems/moderation/report/ReportManager.java:226
↓ 1 callers
Method
handleModerationCommand
(@NotNull SlashCommandInteractionEvent event, @NotNull Member moderator)
src/main/java/net/discordjug/javabot/systems/moderation/ModerateCommand.java:56
↓ 1 callers
Method
handlePostClose
(ButtonInteractionEvent event, @NotNull HelpManager manager)
src/main/java/net/discordjug/javabot/systems/help/HelpListener.java:311
↓ 1 callers
Method
handleReplyGuidelines
(@NotNull IReplyCallback callback, @NotNull ForumChannel channel)
src/main/java/net/discordjug/javabot/systems/help/HelpListener.java:305
↓ 1 callers
Method
handleResolveReportButton
(ButtonInteractionEvent event, String[] id)
src/main/java/net/discordjug/javabot/systems/moderation/report/ReportManager.java:107
↓ 1 callers
Method
handleSelectReview
Handles a submission review using a {@link net.dv8tion.jda.api.components.selections.StringSelectMenu}. @param event The {@link StringSelectInteracti
src/main/java/net/discordjug/javabot/systems/qotw/submissions/SubmissionManager.java:112
↓ 1 callers
Method
handleSelfRole
Handles a single Self Role Interaction. @param event The {@link ButtonInteractionEvent} that is fired upon clicking a button. @param role Th
src/main/java/net/discordjug/javabot/systems/staff_commands/self_roles/SelfRoleInteractionManager.java:154
↓ 1 callers
Method
handleSpam
Handles detected spam messages. @param msg the (last) spam message @param member the member to be potentially warned
src/main/java/net/discordjug/javabot/systems/moderation/AutoMod.java:164
↓ 1 callers
Method
handleSubmission
Handles the "Submit your Answer" Button interaction. @param event The {@link ButtonInteractionEvent} that is fired upon use. @param question
src/main/java/net/discordjug/javabot/systems/qotw/submissions/SubmissionManager.java:68
↓ 1 callers
Method
handleSuggestionCommand
(@Nonnull SlashCommandInteractionEvent event, @Nonnull Message message)
src/main/java/net/discordjug/javabot/systems/staff_commands/suggestions/SuggestionSubcommand.java:62
↓ 1 callers
Method
handleThreadDeletion
Handles the "Delete Submission" Button. @param event The {@link ButtonInteractionEvent} that is fired upon use.
src/main/java/net/discordjug/javabot/systems/qotw/submissions/SubmissionManager.java:168
↓ 1 callers
Method
handleTimeoutCommand
(@NotNull SlashCommandInteractionEvent event, @NotNull Member member)
src/main/java/net/discordjug/javabot/systems/moderation/timeout/TimeoutSubcommand.java:46
↓ 1 callers
Method
handleTitleDescColorModal
(@NotNull ModalInteractionEvent event, @NotNull Message message, MessageEmbed embed)
src/main/java/net/discordjug/javabot/systems/staff_commands/embeds/EditEmbedSubcommand.java:280
↓ 1 callers
Method
handleUnacknowledge
(ButtonInteractionEvent event, String postId)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/HelpPingSubcommand.java:240
↓ 1 callers
Method
hasMemberHelperRole
(@NotNull Guild guild, @Nullable Member member)
src/main/java/net/discordjug/javabot/systems/help/HelpManager.java:232
↓ 1 callers
Method
hasMemberStaffRole
(@NotNull Guild guild, @Nullable Member member)
src/main/java/net/discordjug/javabot/systems/help/HelpManager.java:228
↓ 1 callers
Method
hashCode
()
src/main/java/net/discordjug/javabot/systems/qotw/model/QOTWQuestion.java:32
↓ 1 callers
Method
insert
Insertes a single {@link StarboardEntry}. @param entry The {@link StarboardEntry}. @throws SQLException If an error occurs.
src/main/java/net/discordjug/javabot/systems/starboard/dao/StarboardRepository.java:32
↓ 1 callers
Method
insert
Inserts a new warn into the database. @param command The custom commands to save. @return The custom command that was saved. @throws SQLException If
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/dao/CustomTagRepository.java:33
↓ 1 callers
Method
insert
Inserts a new {@link HelpAccount}. @param account The account that should be inserted. @throws DataAccessException If an error occurs.
src/main/java/net/discordjug/javabot/systems/help/dao/HelpAccountRepository.java:35
↓ 1 callers
Method
insertForm
Create a new form entry in the database. @param data form data to insert.
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:201
↓ 1 callers
Method
insertList
Inserts a {@link List} of {@link CachedMessage} objects. @param messages The List to insert. @throws SQLException If an error occurs.
src/main/java/net/discordjug/javabot/data/h2db/message_cache/dao/MessageCacheRepository.java:33
↓ 1 callers
Method
insertOrReplace
Inserts a new {@link StaffActivityMessage} or replaces an old one. @param msg the {@link StaffActivityMessage} to store
src/main/java/net/discordjug/javabot/systems/staff_activity/dao/StaffActivityMessageRepository.java:21
↓ 1 callers
Method
isBanned
(@NotNull Guild guild, long userId)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:297
↓ 1 callers
Method
isCached
Checks if an Image is cached. @param name The name of the image. @return Whether the image is already cached or not.
src/main/java/net/discordjug/javabot/util/ImageCache.java:61
↓ 1 callers
Method
isCriticalEmoji
(MessageReactionAddEvent event)
src/main/java/net/discordjug/javabot/listener/VotingRegulationListener.java:41
↓ 1 callers
Method
isForumEligibleToBeUnreserved
Checks if the interactions' user is eligible to close a forum post. @param interaction The interaction itself. @return Whether the user is eligible t
src/main/java/net/discordjug/javabot/systems/help/HelpManager.java:214
↓ 1 callers
Method
isHelpPingForbiddenForMember
Determines if a user is forbidden from sending a help-ping command due to their status in the server. @param postOwnerId The posts' owner id. @param
src/main/java/net/discordjug/javabot/systems/help/commands/notify/HelpPingSubcommand.java:183
↓ 1 callers
Method
isHelpPingTimeoutElapsed
Determines if the user's timeout has elapsed (or doesn't exist), which implies that it's fine for the user to send the command. @param memberId The m
src/main/java/net/discordjug/javabot/systems/help/commands/notify/HelpPingSubcommand.java:201
↓ 1 callers
Method
isMessageReceivedEventValid
Checks if a message received event is valid for this vote listener. @param event The event to check. @return True if the event is valid, meaning that
src/main/java/net/discordjug/javabot/listener/ForumPostVoteListener.java:115
↓ 1 callers
Method
isOldUnresolvedNotification
(Message msg)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/ClearOldHelpNotificationJob.java:80
↓ 1 callers
Method
isPingable
Checks if the given name's first three characters contain ASCII characters not between 32 and 126. @param name The name to check. @return True if firs
src/main/java/net/discordjug/javabot/listener/PingableNameListener.java:88
↓ 1 callers
Method
isPostOpen
(Guild guild, String postId)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/HelpPingSubcommand.java:252
↓ 1 callers
Method
isReactionEventValid
Checks if a reaction event is valid for this vote listener. Note that this method may use blocking calls to check if the user who sent the reaction is
src/main/java/net/discordjug/javabot/listener/ForumPostVoteListener.java:134
↓ 1 callers
Method
isRequireStaff
()
src/main/java/net/discordjug/javabot/systems/moderation/ModerateCommand.java:52
↓ 1 callers
Method
isResolvedNotification
(Message msg)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/ClearOldHelpNotificationJob.java:91
↓ 1 callers
Method
isSuggestionsChannel
(@NotNull MessageChannelUnion channel)
src/main/java/net/discordjug/javabot/systems/moderation/AutoMod.java:236
↓ 1 callers
Method
isThanksMessage
(@NotNull Message m)
src/main/java/net/discordjug/javabot/systems/help/HelpForumUpdater.java:107
↓ 1 callers
Method
kick
(ModalInteraction interaction, @NotNull Guild guild, String memberId, String reason)
src/main/java/net/discordjug/javabot/util/InteractionUtils.java:130
↓ 1 callers
Method
load
()
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/LeaderboardCreator.java:164
↓ 1 callers
Method
mapTopUsersToColors
(List<Pair<MonthInYear,HelpAccount>> transactionWeights)
src/main/java/net/discordjug/javabot/systems/help/commands/HelpStatisticsSubcommand.java:98
↓ 1 callers
Method
markUsed
Marks a single {@link QOTWQuestion} as used. @param question The {@link QOTWQuestion} that should be marked as used. @throws DataAccessException If a
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionQueueRepository.java:86
↓ 1 callers
Method
matchesAnyDetector
(String content)
src/main/java/net/discordjug/javabot/systems/help/HelpListener.java:177
↓ 1 callers
Method
of
A simple utility method which creates an instance of this class based on the specified {@link HelpAccount}. @param botConfig configuration of the bot
src/main/java/net/discordjug/javabot/api/routes/user_profile/model/HelpAccountData.java:37
↓ 1 callers
Method
of
Creates a new {@link ExperienceUserData} instance. @param account The {@link HelpAccount} to use. @param user A nullable {@link User}. @param rank Th
src/main/java/net/discordjug/javabot/api/routes/leaderboard/help_experience/model/ExperienceUserData.java:30
↓ 1 callers
Method
of
Creates a new {@link QOTWUserData} instance. @param account The {@link QOTWAccount} to use. @param user A nullable {@link User}. @param rank The posi
src/main/java/net/discordjug/javabot/api/routes/leaderboard/qotw/model/QOTWUserData.java:30
↓ 1 callers
Method
parseGithubUrl
Gets the contents of a GitHub URL. @param link The initial input url. @return A {@link Pair} containing the files content & extension.
src/main/java/net/discordjug/javabot/listener/GitHubLinkListener.java:53
↓ 1 callers
Method
parseMessageUrl
Tries to parse a Discord Message Link to the corresponding Message object. @param url The Message Link. @param jda The {@link JDA} instance. @return
src/main/java/net/discordjug/javabot/listener/MessageLinkListener.java:81
↓ 1 callers
Method
performDeletion
(long amount, User user, MessageChannel channel, TextChannel logChannel, MessageHistory history, PrintWrite
src/main/java/net/discordjug/javabot/systems/moderation/PurgeCommand.java:154
↓ 1 callers
Method
plotEntries
(Graphics2D g2d, int x, int y, int width, int height)
src/main/java/net/discordjug/javabot/util/Plotter.java:49
↓ 1 callers
Method
processHug
(String originalText)
src/main/java/net/discordjug/javabot/listener/filter/HugFilter.java:37
↓ 1 callers
Method
processMessage
When a message is received, it is processed by the registered filters. @param content The content of the new message that will be reposted instead of
src/main/java/net/discordjug/javabot/listener/filter/MessageFilter.java:23
↓ 1 callers
Method
processTokenInCode
(int i, char current)
src/main/java/net/discordjug/javabot/util/IndentationHelper.java:161
↓ 1 callers
Method
purge
Purges messages from a channel. @param amount The number of messages to remove. @param user The user whose messages to remove. If null, m
src/main/java/net/discordjug/javabot/systems/moderation/PurgeCommand.java:129
↓ 1 callers
Method
read
(ResultSet rs)
src/main/java/net/discordjug/javabot/systems/user_preferences/dao/UserPreferenceRepository.java:51
↓ 1 callers
Method
read
(ResultSet rs)
src/main/java/net/discordjug/javabot/data/h2db/message_cache/dao/MessageCacheRepository.java:113
↓ 1 callers
Method
readField
(ResultSet rs)
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:304
↓ 1 callers
Method
registerComponentHandlers
(@NotNull ApplicationContext ctx)
src/main/java/net/discordjug/javabot/Bot.java:108
↓ 1 callers
Method
rejectUserDuringRaid
Rejects a user's joining of the server during a raid attempt by sending them a message about it and kicking them immediately. @param event The user w
src/main/java/net/discordjug/javabot/systems/moderation/server_lock/ServerLockManager.java:203
↓ 1 callers
Method
removeCommand
Removes a single {@link CustomTag} from the specified guild. @param guildId The guilds' id. @param tag The {@link CustomTag} to delete. @return W
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/CustomTagManager.java:181
↓ 1 callers
Method
removeField
Remove a field from a form. Fails and return false if the index is out of bounds. @param form form to remove the field from @param index index of th
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:250
↓ 1 callers
Method
removeMessages
Deletes the given messages. If user is not null, only messages from that user are deleted. If the given archive writer is not null, the message will b
src/main/java/net/discordjug/javabot/systems/moderation/PurgeCommand.java:193
↓ 1 callers
Method
removeQuestion
Removes a single {@link QOTWQuestion}. @param guildId The current guild's id. @param id The question's id. @return Whether the {@link QOTWQuesti
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionQueueRepository.java:155
↓ 1 callers
Method
removeTimeout
Removes a Timeout from a member. @param member The member whose Timeout should be removed. @param reason The reason for removing this Timeout.
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:237
↓ 1 callers
Method
reopenForm
Set this form's closed state to false. @param form form to re-open
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:262
↓ 1 callers
Method
replaceActivityMessage
(StaffActivityType type, TemporalAccessor timestamp, Message activityMessage, Member member)
src/main/java/net/discordjug/javabot/systems/staff_activity/StaffActivityService.java:81
↓ 1 callers
Method
replaceFucks
(String str)
src/main/java/net/discordjug/javabot/listener/filter/HugFilter.java:43
↓ 1 callers
Method
replaceMessage
(IWebhookContainer webhookContainer, long threadId, MessageContent content)
src/main/java/net/discordjug/javabot/listener/filter/MessageFilterHandler.java:94
↓ 1 callers
Method
replaceUnformattedCode
(String msg, int codeStartIndex, int codeEndIndex, MessageReceivedEvent event)
src/main/java/net/discordjug/javabot/systems/help/AutoCodeFormatter.java:137
↓ 1 callers
Method
replyCannotInteract
(IReplyCallback event, @NotNull IMentionable mentionable)
src/main/java/net/discordjug/javabot/util/Responses.java:132
↓ 1 callers
Method
replyCloseSuggestionIfPatternMatches
(Message msg)
src/main/java/net/discordjug/javabot/systems/help/HelpListener.java:148
← previous
next →
501–600 of 1,112, ranked by callers