MCPcopy Create free account

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

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

↓ 269 callersMethodgetGuild
A shortcut to get the guild in the context of a specific config item. @return The guild that this item exists under.
src/main/java/net/discordjug/javabot/data/config/GuildConfigItem.java:23
↓ 247 callersMethodget
Gets the configuration for a particular guild. @param guild The guild to get config for. @return The config for the given guild.
src/main/java/net/discordjug/javabot/data/config/BotConfig.java:118
↓ 205 callersMethodbuild
()
src/main/java/net/discordjug/javabot/util/QueryBuilder.java:40
↓ 188 callersMethodof
(String propertyName, H2Type h2Type, BiConsumer<T, Object> consumer, Function<T, Object> function)
src/main/java/net/discordjug/javabot/data/h2db/TableProperty.java:25
↓ 182 callersMethoderror
(IReplyCallback event, String message, Object... args)
src/main/java/net/discordjug/javabot/util/Responses.java:55
↓ 131 callersMethodaddField
Add a field to a form. @param form form to add field to @param field field to add
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:45
↓ 108 callersMethodcapture
Captures a single {@link Throwable}. @param t The {@link Throwable} to log. @param name The origin's name.
src/main/java/net/discordjug/javabot/util/ExceptionLogger.java:20
↓ 106 callersMethodgetChannel
Gets the text channel in which this vote listener operates. @param guild The guild to get the channel for. @return The text channel that this vote li
src/main/java/net/discordjug/javabot/listener/ForumPostVoteListener.java:39
↓ 99 callersMethodsetCommandData
(SlashCommandData data)
src/main/java/net/discordjug/javabot/systems/moderation/CommandModerationPermissions.java:29
↓ 79 callersMethodgetValue
(@NotNull String s)
src/main/java/net/discordjug/javabot/systems/staff_commands/embeds/EditEmbedSubcommand.java:80
↓ 74 callersMethodgetUserTag
Returns the tag of a discord user, in the format "[username]#[discriminator]", or just "[username]" if the new username system is used. @param user T
src/main/java/net/discordjug/javabot/util/UserUtils.java:16
↓ 73 callersMethodmap
(ResultSet rs)
src/main/java/net/discordjug/javabot/data/h2db/ResultSetMapper.java:13
↓ 72 callersMethodgetColor
()
src/main/java/net/discordjug/javabot/util/Responses.java:220
↓ 68 callersMethodsendMessage
(JDAWebhookClient client, WebhookMessageBuilder message)
src/main/java/net/discordjug/javabot/util/WebhookUtil.java:163
↓ 59 callersMethodgetModerationConfig
(Member member)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:442
↓ 54 callersMethodequals
(Object o)
src/main/java/net/discordjug/javabot/systems/qotw/model/QOTWQuestion.java:24
↓ 52 callersMethodinfo
(IReplyCallback event, String title, String message, Object... args)
src/main/java/net/discordjug/javabot/util/Responses.java:45
↓ 39 callersMethodreplyMissingArguments
(IReplyCallback event)
src/main/java/net/discordjug/javabot/util/Responses.java:95
↓ 36 callersMethodsetTimestamp
(LocalDateTime timestamp)
src/main/java/net/discordjug/javabot/util/QueryBuilder.java:30
↓ 33 callersMethodreply
Sends a reply to a slash command event. @param event The event to reply to. @param title The title of the reply message. @param message The
src/main/java/net/discordjug/javabot/util/Responses.java:157
↓ 29 callersMethodupdate
Updates a single {@link HelpAccount}. @param account The account that should be updated. @throws DataAccessException If an error occurs.
src/main/java/net/discordjug/javabot/systems/help/dao/HelpAccountRepository.java:49
↓ 26 callersMethodsendToModerationLog
Sends a notification to the log channel. @param function The {@link Function} to use which MUST return a {@link MessageCreateAction}.
src/main/java/net/discordjug/javabot/systems/notification/GuildNotificationService.java:27
↓ 25 callersMethodsuccess
(IReplyCallback event, String title, String message, Object... args)
src/main/java/net/discordjug/javabot/util/Responses.java:35
↓ 25 callersMethodwithGuild
(Guild guild)
src/main/java/net/discordjug/javabot/systems/notification/NotificationService.java:26
↓ 24 callersMethodgetSystems
()
src/main/java/net/discordjug/javabot/data/config/BotConfig.java:126
↓ 24 callersMethodreplyGuildOnly
(IReplyCallback event)
src/main/java/net/discordjug/javabot/util/Responses.java:105
↓ 23 callersMethodwarning
(IReplyCallback event, String message, Object... args)
src/main/java/net/discordjug/javabot/util/Responses.java:75
↓ 22 callersMethodtoString
(Color color)
src/main/java/net/discordjug/javabot/util/ColorUtils.java:27
↓ 19 callersMethodcreateWarn
(LocalDateTime creationTimestamp)
src/test/java/net/discordjug/javabot/systems/moderation/WarnDecayTest.java:148
↓ 18 callersMethodexecute
(Connection c)
src/main/java/net/discordjug/javabot/data/h2db/TransactionFunction.java:11
↓ 18 callersMethodgetMessageId
gets the ID of the activity message of a specific staff member. @param guildId the ID of the relevant guild @param userId the ID of the staff member @
src/main/java/net/discordjug/javabot/systems/staff_activity/dao/StaffActivityMessageRepository.java:37
↓ 16 callersMethodgetByUserId
Tries to retrieve a {@link HelpAccount}, based on the given id. @param userId The user's id. @return An {@link HelpAccount} object, as an {@link Opti
src/main/java/net/discordjug/javabot/systems/help/dao/HelpAccountRepository.java:62
↓ 15 callersMethodbuildTextProgressBar
Builds a progress bar that uses block characters. <p> For example: <pre>[███████░░░░]</pre> </p> @param value The floating-point value. This should
src/main/java/net/discordjug/javabot/util/StringUtils.java:97
↓ 15 callersMethodgetForm
Get a form for given ID. @param formId form ID to query @return the obtained form or {@link Optional#empty()}
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:157
↓ 15 callersMethodsetComponents
(long targetId, long threadId)
src/main/java/net/discordjug/javabot/systems/moderation/report/ReportManager.java:251
↓ 14 callersMethodgetLogChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:130
↓ 14 callersMethodgetMessageContent
Gets the actual content of a message. In case of forwarded messages, this gets the content of the forwarded message. @param msg the message to check @
src/main/java/net/discordjug/javabot/util/MessageUtils.java:22
↓ 14 callersMethodgetPoints
Gets the given user's QOTW-Points. @param userId The id of the user. @return The user's total QOTW-Points
src/main/java/net/discordjug/javabot/systems/qotw/QOTWPointsService.java:97
↓ 14 callersMethodinsert
Inserts a new warn into the database. @param warn The warn to save. @return The warn that was saved. @throws SQLException If an error occurs.
src/main/java/net/discordjug/javabot/systems/moderation/warn/dao/WarnRepository.java:34
↓ 13 callersMethodcheckForStaffRole
Check if the author of this event has the configured staff role. If not, reply to the event with a message and return `false` @param event event to r
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/FormSubcommand.java:79
↓ 13 callersMethodcreateAccount
(long userId, int score)
src/test/java/net/discordjug/javabot/systems/qotw/QOTWPointsServiceTest.java:54
↓ 13 callersMethoddelete
Deletes a single {@link StarboardEntry} based on the message id. @param messageId The entries' message id. @throws SQLException If an error occurs.
src/main/java/net/discordjug/javabot/systems/starboard/dao/StarboardRepository.java:45
↓ 13 callersMethodgetEmoji
(@NotNull JDA jda, long emoteId, String backup)
src/main/java/net/discordjug/javabot/data/config/SystemsConfig.java:130
↓ 13 callersMethodgetSubmissionChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/QOTWConfig.java:33
↓ 13 callersMethodhasPermission
(@NotNull Guild guild, Permission perm)
src/main/java/net/discordjug/javabot/util/Checks.java:44
↓ 13 callersMethodhasStaffRole
(BotConfig botConfig, @NotNull Member member)
src/main/java/net/discordjug/javabot/util/Checks.java:32
↓ 12 callersMethodgetQOTWReviewRole
()
src/main/java/net/discordjug/javabot/data/config/guild/QOTWConfig.java:45
↓ 12 callersMethodhandleFormIDAutocomplete
Tries to handle the auto completion event initiated by a user. If current focused field's id is equal to {@link #FORM_ID_FIELD}, the method will handl
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/FormSubcommand.java:96
↓ 12 callersMethodsetModerationSlashCommandData
Takes the given {@link SlashCommandData} and forces it to be guild only enabled for users with the {@link Permission#MODERATE_MEMBERS} permission. @p
src/main/java/net/discordjug/javabot/systems/moderation/CommandModerationPermissions.java:22
↓ 11 callersMethodcalculateSeverityWeight
(ModerationConfig moderationConfig, List<Warn> activeWarns)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:104
↓ 11 callersMethodgetQOTWRank
Gets the given user's QOTW-Rank. @param userId The user whose rank should be returned. @return The QOTW-Rank as an integer.
src/main/java/net/discordjug/javabot/systems/qotw/QOTWPointsService.java:58
↓ 11 callersMethodgetStaffRole
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:154
↓ 11 callersMethodreplyStaffOnly
(IReplyCallback event, GuildConfig guildConfig)
src/main/java/net/discordjug/javabot/util/Responses.java:137
↓ 11 callersMethodresolve
Attempts to resolve a configuration property value by its name, using a '.' to concatenate property names. For example, the {@link ModerationConfig} h
src/main/java/net/discordjug/javabot/data/config/GuildConfig.java:136
↓ 11 callersMethodsetLong
(long n)
src/main/java/net/discordjug/javabot/util/QueryBuilder.java:20
↓ 11 callersMethodtoString
()
src/main/java/net/discordjug/javabot/systems/user_preferences/model/Preference.java:39
↓ 10 callersMethodgetAttachmentInfo
Get information about the form's attachment state. If the form is attached to a message, this method will return a non-empty optional containing infor
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/model/FormData.java:72
↓ 10 callersMethodsetName
(@NotNull String name)
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/model/CustomTag.java:23
↓ 9 callersMethodclose
Closes the {@link HelpManager#postThread}. @param callback The callback to reply to. @param withHelpers Whether the help-thanks message should be
src/main/java/net/discordjug/javabot/systems/help/HelpManager.java:109
↓ 9 callersMethodgetSubmissionsForumChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/QOTWConfig.java:37
↓ 9 callersMethodof
Converts a {@link Message} object to a {@link CachedMessage}. @param message The {@link Message} to convert. @return The built {@link CachedMessage}.
src/main/java/net/discordjug/javabot/data/h2db/message_cache/model/CachedMessage.java:51
↓ 9 callersMethodremoveExperienceFromAllAccounts
Removes the specified amount of experience from all {@link HelpAccount}s. @param change The amount to subtract. @param min The minimum amount to subt
src/main/java/net/discordjug/javabot/systems/help/dao/HelpAccountRepository.java:105
↓ 8 callersMethodcount
Gets a count, using a query which <strong>must</strong> return a long integer value as the first column of the result set. @param query The query.
src/main/java/net/discordjug/javabot/data/h2db/DbActions.java:51
↓ 8 callersMethodgetDescription
(Member member)
src/main/java/net/discordjug/javabot/systems/user_commands/ProfileCommand.java:112
↓ 8 callersMethodnormalizeLineEndings
(String text)
src/test/java/net/discordjug/javabot/util/IndentationHelperTest.java:32
↓ 8 callersMethodsendDirectMessage
Sends a notification to a {@link User}s' {@link net.dv8tion.jda.api.entities.channel.concrete.PrivateChannel}. @param function The {@link Function} t
src/main/java/net/discordjug/javabot/systems/notification/UserNotificationService.java:34
↓ 8 callersMethodsetString
(String s)
src/main/java/net/discordjug/javabot/util/QueryBuilder.java:25
↓ 8 callersMethodtoString
()
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/model/FormData.java:113
↓ 8 callersMethodwarn
Issues a warning for the given user. @param user The user to warn. @param severity The severity of the warning. @param reason The reason for this
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:58
↓ 8 callersMethodwarnin
(IReplyCallback event, String title, String message, Object... args)
src/main/java/net/discordjug/javabot/util/Responses.java:85
↓ 8 callersMethodwithUser
(User user)
src/main/java/net/discordjug/javabot/systems/notification/NotificationService.java:31
↓ 7 callersMethodapply
(Connection c)
src/main/java/net/discordjug/javabot/data/h2db/ConnectionFunction.java:14
↓ 7 callersMethodflush
Flushes all configuration to the disk.
src/main/java/net/discordjug/javabot/data/config/BotConfig.java:133
↓ 7 callersMethodmatches
(MessageContent content, MessageRule rule)
src/main/java/net/discordjug/javabot/listener/filter/MessageRuleFilter.java:85
↓ 7 callersMethodmirrorMessageToWebhook
Resends a specific message using a webhook with a custom content. @param webhook the webhook used for sending the message @param originalMe
src/main/java/net/discordjug/javabot/util/WebhookUtil.java:94
↓ 7 callersMethodpluralize
Formats an integer number with a suffix that agrees with the plurality of the number. For example, this can produce "1 day" and "2 days". @param sing
src/main/java/net/discordjug/javabot/util/TimeUtils.java:67
↓ 6 callersMethodcreateDeleteButton
(long senderId)
src/main/java/net/discordjug/javabot/util/InteractionUtils.java:118
↓ 6 callersMethodensureWebhookExists
Makes sure that a writable webhook exists in a specific channel. if no suitable webhook is found, one is created. @param channel the {@link IWebhook
src/main/java/net/discordjug/javabot/util/WebhookUtil.java:41
↓ 6 callersMethoderrorWithTitle
(IReplyCallback event, String title, String message, Object... args)
src/main/java/net/discordjug/javabot/util/Responses.java:60
↓ 6 callersMethodformatIndentation
Aims to indent the given String using the pattern provided. Will return the String unchanged if {@link IndentationHelper.IndentationType#NULL} is pass
src/main/java/net/discordjug/javabot/util/IndentationHelper.java:108
↓ 6 callersMethodgetEmojis
()
src/main/java/net/discordjug/javabot/data/config/guild/StarboardConfig.java:27
↓ 6 callersMethodgetOrCreateAccount
Creates a new QOTW Account if none exists. @param userId The user's id. @return An {@link QOTWAccount} object. @throws DataAccessException If an erro
src/main/java/net/discordjug/javabot/systems/qotw/QOTWPointsService.java:38
↓ 6 callersMethodhandleReply
Handles the reply to the {@link IReplyCallback} and acknowledges it, if not already done. @param callback The {@link IReplyCallback} to reply to. @pa
src/main/java/net/discordjug/javabot/listener/DIH4JDAListener.java:68
↓ 6 callersMethodisQuiet
Determines whether this command is executed quitely. If it is, no (public) response should be sent in the current channel. This does not effect loggi
src/main/java/net/discordjug/javabot/systems/moderation/ModerateUserCommand.java:63
↓ 6 callersMethodretrieveAuthor
Attempts to retrieve the thread's actual author. Since the bot is creating submission threads, we can't use {@link ThreadChannel#getOwnerThreadMember(
src/main/java/net/discordjug/javabot/systems/qotw/model/QOTWSubmission.java:29
↓ 6 callersMethodtoJson
(Object object)
src/main/java/net/discordjug/javabot/util/GsonUtils.java:32
↓ 6 callersMethodwithQOTW
(Guild guild)
src/main/java/net/discordjug/javabot/systems/notification/NotificationService.java:41
↓ 5 callersMethodaddCodeblockField
(EmbedBuilder builder, String name, Object content, boolean inline)
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/DetailsFormSubcommand.java:123
↓ 5 callersMethodbuildModerationEmbed
(@NotNull User user, @NotNull Member moderator, String reason)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:353
↓ 5 callersMethodcopyCase
(String source, String toChange)
src/main/java/net/discordjug/javabot/listener/filter/HugFilter.java:56
↓ 5 callersMethodgetCurrentMonth
()
src/main/java/net/discordjug/javabot/systems/qotw/QOTWPointsService.java:183
↓ 5 callersMethodgetFailureEmote
(JDA jda)
src/main/java/net/discordjug/javabot/data/config/SystemsConfig.java:106
↓ 5 callersMethodgetMessageCacheLogChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/MessageCacheConfig.java:41
↓ 5 callersMethodgetOrCreate
Gets a single {@link UserPreference} (or creates a new one if it doesn't exist yet). @param userId The users' id. @param preference The {@link Pr
src/main/java/net/discordjug/javabot/systems/user_preferences/UserPreferenceService.java:61
↓ 5 callersMethodgetStarboardChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/StarboardConfig.java:23
↓ 5 callersMethodgetUpvoteEmote
Gets the emote that's used for casting upvotes. @param jda The {@link JDA} instance to get the emoji for. @return The emote.
src/main/java/net/discordjug/javabot/listener/ForumPostVoteListener.java:65
↓ 5 callersMethodhasAdminRole
(BotConfig botConfig, @NotNull Member member)
src/main/java/net/discordjug/javabot/util/Checks.java:36
↓ 5 callersMethodhasExpirationTime
Checks if the form can expire. @return true if this form has an expiration time.
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/model/FormData.java:99
↓ 5 callersMethodhasExpired
Checks if the current form still accepts submissions. @return true, if the form has expired, false, if the form is still valid or can't expir
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/model/FormData.java:109
↓ 5 callersMethodisInvalidLongInput
Checks if the given {@link OptionMapping} is parsable to a {@link Long}. @param mapping The {@link OptionMapping} to check. @return Whether the {@lin
src/main/java/net/discordjug/javabot/util/Checks.java:54
next →1–100 of 1,112, ranked by callers