MCPcopy Create free account

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

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

↓ 5 callersMethodisLocked
(Guild guild)
src/main/java/net/discordjug/javabot/systems/moderation/server_lock/ServerLockManager.java:113
↓ 5 callersMethodreplyAdminOnly
(IReplyCallback event, GuildConfig guildConfig)
src/main/java/net/discordjug/javabot/util/Responses.java:142
↓ 5 callersMethodreplyInsufficientPermissions
(IReplyCallback event, Permission... permissions)
src/main/java/net/discordjug/javabot/util/Responses.java:115
↓ 5 callersMethodsend
Sends a single message to the specified {@link MessageChannel} using the specified {@link Function}. @param channel The target {@link MessageChannel
src/main/java/net/discordjug/javabot/systems/notification/NotificationService.java:61
↓ 5 callersMethodsendGuildNotification
(Guild guild, MessageEmbed embed)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:344
↓ 5 callersMethodstandardSanitizer
Builds and returns the standard MarkdownSanitizer used to sanitize code blocks. @return The built {@link MarkdownSanitizer}. @see net.discordjug.java
src/main/java/net/discordjug/javabot/util/StringUtils.java:32
↓ 4 callersMethodbuildErrorResponse
(HttpStatus status, String message, String... errors)
src/main/java/net/discordjug/javabot/api/exception/RestExceptionHandler.java:63
↓ 4 callersMethodbuildQOTWNotificationEmbed
()
src/main/java/net/discordjug/javabot/systems/notification/QOTWNotificationService.java:75
↓ 4 callersMethodcheckImageUrl
Checks if the specified url points to a valid image. @param url The provided URL. @return Whether the specified url points to a valid image.
src/main/java/net/discordjug/javabot/util/Checks.java:69
↓ 4 callersMethodfindByName
Finds a custom command by its name. @param guildId The guild id of the custom command. @param name The name of the custom command. @return The cus
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/dao/CustomTagRepository.java:88
↓ 4 callersMethodgetCounts
(String query, Guild guild)
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/ThanksLeaderboardSubcommand.java:89
↓ 4 callersMethodgetDownvoteEmote
Gets the emote that's used for casting downvotes. @param jda The {@link JDA} instance to get the emoji for. @return The emote.
src/main/java/net/discordjug/javabot/listener/ForumPostVoteListener.java:75
↓ 4 callersMethodgetEntryByMessageId
Gets a {@link StarboardEntry} by its message id. @param messageId The entries' message id. @return The {@link StarboardEntry} object. @throws SQLExce
src/main/java/net/discordjug/javabot/systems/starboard/dao/StarboardRepository.java:59
↓ 4 callersMethodgetJumpButton
(@NotNull Message m)
src/main/java/net/discordjug/javabot/systems/staff_commands/suggestions/SuggestionSubcommand.java:64
↓ 4 callersMethodgetOwnerId
Gets the owner of a custom voice channel. @param voiceChannelId the ID of the voice channel @return the ID of the owner of the custom voice channel
src/main/java/net/discordjug/javabot/systems/custom_vc/CustomVCRepository.java:50
↓ 4 callersMethodgetSuccessEmote
(JDA jda)
src/main/java/net/discordjug/javabot/data/config/SystemsConfig.java:110
↓ 4 callersMethodgetTimestampFromId
(long id)
src/main/java/net/discordjug/javabot/systems/user_commands/IdCalculatorCommand.java:35
↓ 4 callersMethodgetTotalSeverityWeight
Gets the total warn severity weight of a given user. @implSpec Only warns from the last {@link ModerationConfig#getMaxWarnValidityDays()} days are ch
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:98
↓ 4 callersMethodgetWeight
Gets the weight based on the severity. @return The severity's weight.
src/main/java/net/discordjug/javabot/systems/moderation/warn/model/WarnSeverity.java:61
↓ 4 callersMethodinit
Resets the current {@link CachedMessage} to have the content of the passed {@link Message}. @param message the {@link Message} this object is set to.
src/main/java/net/discordjug/javabot/data/h2db/message_cache/model/CachedMessage.java:61
↓ 4 callersMethodisCustomVoiceChannel
Checks whether a channel is a custom voice channel. @param id the channel ID @return {@code true} if the channel is a custom voice channel, else {@cod
src/main/java/net/discordjug/javabot/systems/custom_vc/CustomVCRepository.java:41
↓ 4 callersMethodisLocked
()
src/main/java/net/discordjug/javabot/data/config/guild/ServerLockConfig.java:18
↓ 4 callersMethodkickMemberForServerlock
(Guild guild, Member member)
src/main/java/net/discordjug/javabot/systems/moderation/server_lock/ServerLockManager.java:266
↓ 4 callersMethodload
Loads a String from the resources folder. @param resourceName The resources' name & path. @return The resources' content as a String.
src/main/java/net/discordjug/javabot/util/StringResourceCache.java:26
↓ 4 callersMethodread
Reads the given {@link ResultSet} and constructs a new {@link CustomTag} object. @param rs The ResultSet. @return The {@link CustomTag} object. @thro
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/dao/CustomTagRepository.java:145
↓ 4 callersMethodread
(@NotNull ResultSet rs)
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionQueueRepository.java:160
↓ 4 callersMethodremoveMessageFromStarboard
(long messageId, MessageChannel channel, StarboardConfig config)
src/main/java/net/discordjug/javabot/systems/starboard/StarboardManager.java:219
↓ 3 callersMethodacceptSubmission
Accepts a submission. @param thread The submission's {@link ThreadChannel}. @param author The submissions' author. @param reviewedBy The revi
src/main/java/net/discordjug/javabot/systems/qotw/submissions/SubmissionManager.java:201
↓ 3 callersMethodaddComponentHandler
(List<IdMapping<T>> handlers, String[] keys, Object handler, @NotNull Class<T> type)
src/main/java/net/discordjug/javabot/Bot.java:127
↓ 3 callersMethodban
Bans a user. @param user The user to ban. @param reason The reason for banning the member. @param bannedBy The member who is responsible for ba
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:255
↓ 3 callersMethodbuildErrorEmbed
()
src/main/java/net/discordjug/javabot/listener/DIH4JDAListener.java:75
↓ 3 callersMethodbuildExceptionEmbed
(@NotNull Throwable throwable)
src/main/java/net/discordjug/javabot/listener/DIH4JDAListener.java:82
↓ 3 callersMethodbuildMessageCacheEmbed
Creates an {@link EmbedBuilder} with information about a cached message. @param channel The channel the message was sent in. @param author The author
src/main/java/net/discordjug/javabot/data/h2db/message_cache/MessageCache.java:199
↓ 3 callersMethodcapitalize
Capitalizes the given word. @param word The word to capitalize. @return The capitalized word.
src/main/java/net/discordjug/javabot/util/StringUtils.java:118
↓ 3 callersMethodcenteredText
(Graphics2D g2d, String text, int x, int y)
src/main/java/net/discordjug/javabot/util/Plotter.java:94
↓ 3 callersMethoddelete
Deletes the given amount of Messages. @param amount The amount to delete. @return If any rows we're affected. @throws SQLException If anything goes w
src/main/java/net/discordjug/javabot/data/h2db/message_cache/dao/MessageCacheRepository.java:104
↓ 3 callersMethoddoesTagExist
Checks whether a single {@link CustomTag} already exists in the specified guild. @param guildId The guild's id. @param tagName The tag's name. @retur
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/CustomTagManager.java:217
↓ 3 callersMethoddurationToNow
Returns the duration between the given time and now, respecting time zone information. @param time The time to get the duration to. @return A duratio
src/main/java/net/discordjug/javabot/util/TimeUtils.java:78
↓ 3 callersMethodformatDuration
Formats a duration as roughly-accurate string that is human-friendly. @param duration The duration to format. @return A string representing a human-r
src/main/java/net/discordjug/javabot/util/TimeUtils.java:38
↓ 3 callersMethodfromJson
(Reader json, Class<T> type)
src/main/java/net/discordjug/javabot/util/GsonUtils.java:24
↓ 3 callersMethodgenerateModal
(ButtonInteractionEvent event, String title)
src/main/java/net/discordjug/javabot/util/InteractionUtils.java:214
↓ 3 callersMethodgetCustomTags
Gets all {@link CustomTag}s (from the database) for the specified {@link Guild}. @param guildId The guilds' id. @return A {@link Set} of all {@link C
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/CustomTagManager.java:126
↓ 3 callersMethodgetCustomVoiceChannel
(SlashCommandInteractionEvent event)
src/main/java/net/discordjug/javabot/systems/custom_vc/commands/CustomVCChangeMembersSubcommand.java:68
↓ 3 callersMethodgetDefaultChoices
()
src/main/java/net/discordjug/javabot/systems/user_preferences/model/PreferenceType.java:13
↓ 3 callersMethodgetEarliestActiveWarnTimestamp
(ModerationConfig moderationConfig)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:148
↓ 3 callersMethodgetExpertRole
()
src/main/java/net/discordjug/javabot/data/config/guild/ModerationConfig.java:162
↓ 3 callersMethodgetMemberQueue
(@NotNull Guild guild)
src/main/java/net/discordjug/javabot/systems/moderation/server_lock/ServerLockManager.java:117
↓ 3 callersMethodgetMigrationsDirectory
Tries to get the Migrations Directories' Path. @return The Migrations Directories' Path. @throws URISyntaxException If an error occurs. @throws IOExc
src/main/java/net/discordjug/javabot/data/h2db/MigrationUtils.java:28
↓ 3 callersMethodgetQOTWRole
()
src/main/java/net/discordjug/javabot/data/config/guild/QOTWConfig.java:41
↓ 3 callersMethodgetQuestionChannel
()
src/main/java/net/discordjug/javabot/data/config/guild/QOTWConfig.java:29
↓ 3 callersMethodgetResourceFont
Gets a Font from the specified Resource Path. @param path The path of the font. @param size The font's size. @return The font as an {@link Optional}
src/main/java/net/discordjug/javabot/util/ImageGenerationUtils.java:49
↓ 3 callersMethodgetResourceImage
Gets an Image from the specified Resource Path. @param path The path of the image. @return The image as a {@link BufferedImage} @throws IOException I
src/main/java/net/discordjug/javabot/util/ImageGenerationUtils.java:38
↓ 3 callersMethodgetTopAccounts
Gets the specified amount of {@link QOTWAccount}s, sorted by their points. @param amount The amount to retrieve. @param page The page to get, startin
src/main/java/net/discordjug/javabot/systems/qotw/QOTWPointsService.java:143
↓ 3 callersMethodgetVerb
()
src/main/java/net/discordjug/javabot/systems/qotw/submissions/SubmissionStatus.java:38
↓ 3 callersMethodhandleAutoComplete
(@NotNull CommandAutoCompleteInteractionEvent event)
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/CustomTagManager.java:72
↓ 3 callersMethodhasAdvertisingLink
Checks whether the given message contains a discord invite link. @param message The Message to check. @return True if an invite is found and False if
src/main/java/net/discordjug/javabot/systems/moderation/AutoMod.java:223
↓ 3 callersMethodhasSuspiciousLink
Checks whether the given message contains a link that might be used to scam people. @param message The message to check. @return True if a link is fo
src/main/java/net/discordjug/javabot/systems/moderation/AutoMod.java:195
↓ 3 callersMethodincrement
Increments a single user's QOTW-Points. @param userId The ID of the user whose points shall be incremented @return The total points after the update.
src/main/java/net/discordjug/javabot/systems/qotw/QOTWPointsService.java:158
↓ 3 callersMethodisInvalidChannel
(@NotNull MessageChannel channel)
src/main/java/net/discordjug/javabot/systems/starboard/StarboardManager.java:93
↓ 3 callersMethodisInvalidForumPost
(@NotNull Channel channel)
src/main/java/net/discordjug/javabot/systems/help/HelpListener.java:235
↓ 3 callersMethodisInvalidHelpForumChannel
(@NotNull ForumChannel forum)
src/main/java/net/discordjug/javabot/systems/help/HelpListener.java:241
↓ 3 callersMethodlog
(MessageContent content, MessageRule ruleToExecute, ModerationConfig moderationConfig)
src/main/java/net/discordjug/javabot/listener/filter/MessageRuleFilter.java:72
↓ 3 callersMethodread
(@NotNull ResultSet rs)
src/main/java/net/discordjug/javabot/systems/starboard/dao/StarboardRepository.java:96
↓ 3 callersMethodread
Reads the given {@link ResultSet} and constructs a new {@link Warn} object. @param rs The ResultSet @return The {@link Warn} object. @throws SQLExcep
src/main/java/net/discordjug/javabot/systems/moderation/warn/dao/WarnRepository.java:100
↓ 3 callersMethodread
(ResultSet rs, List<FormField> fields)
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:292
↓ 3 callersMethodread
(JsonReader reader)
src/main/java/net/discordjug/javabot/data/config/PatternTypeAdapter.java:25
↓ 3 callersMethodreadFormFields
(long formId)
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:288
↓ 3 callersMethodresolveIfInReport
(MessageChannelUnion currentChannel, User actioner)
src/main/java/net/discordjug/javabot/util/InteractionUtils.java:172
↓ 3 callersMethodsendCode
Acknowledges the interaction by replying with the full code as a file, then posts the code as ordered code-block messages. Replies with an error inste
src/main/java/net/discordjug/javabot/systems/user_commands/format_code/FormatCodeDispatcher.java:36
↓ 3 callersMethodset
Attempts to set a configuration property's value by its name, using '.' to concatenate property names, similar to {@link GuildConfig#resolve(String)}.
src/main/java/net/discordjug/javabot/data/config/GuildConfig.java:156
↓ 3 callersMethodsetBoolean
(boolean b)
src/main/java/net/discordjug/javabot/util/QueryBuilder.java:35
↓ 3 callersMethodsetRequiredStaff
(boolean requireStaff)
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/commands/TagsSubcommand.java:44
↓ 3 callersMethodsum
()
src/main/java/net/discordjug/javabot/util/Plotter.java:108
↓ 3 callersMethodtimeout
Adds a Timeout to the member. @param user The user to time out. @param reason The reason for adding this Timeout. @param timedOutBy The mem
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:219
↓ 3 callersMethodunlockServer
Unlocks the server after it has been deemed that we're no longer in a raid. @param guild The guild to unlock. @param unlockedby The user which u
src/main/java/net/discordjug/javabot/systems/moderation/server_lock/ServerLockManager.java:281
↓ 3 callersMethodwrite
(JsonWriter writer, Pattern value)
src/main/java/net/discordjug/javabot/data/config/PatternTypeAdapter.java:16
↓ 2 callersMethodacknowledgeChangeAction
(ButtonInteractionEvent event, String postId, boolean acknowledged)
src/main/java/net/discordjug/javabot/systems/help/commands/notify/HelpPingSubcommand.java:260
↓ 2 callersMethodaddEventListeners
(final List<ListenerAdapter> listeners)
src/main/java/net/discordjug/javabot/Bot.java:59
↓ 2 callersMethodaddMessageBasedHelpXP
add XP to all helpers depending on the messages they sent. @param post The {@link ThreadChannel} post @param allowIfXPAlreadyGiven {@code true} if XP
src/main/java/net/discordjug/javabot/systems/help/HelpExperienceService.java:128
↓ 2 callersMethodaddSelfRoleButton
Adds the Self-Role Button to the given Message. @param event The {@link SlashCommandInteractionEvent} that is fired upon using a Slash Command. @
src/main/java/net/discordjug/javabot/systems/staff_commands/self_roles/CreateSelfRoleSubcommand.java:93
↓ 2 callersMethodattemptLoadFromCache
load an image from the cache as a {@code byte[]}. @param cacheName the name of the cache to load @param fallback a callback which is executed in case
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/LeaderboardCreator.java:136
↓ 2 callersMethodbanAndSendGuildNotifications
(User user, String reason, Member bannedBy, MessageChannel channel, boolean quiet, MessageEmbed banEmbed)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:266
↓ 2 callersMethodbuildActionRow
Builds the action row placed on the last code-block message. @param target the original message linked by the "View Original" button @return an
src/main/java/net/discordjug/javabot/systems/user_commands/format_code/FormatCodeDispatcher.java:82
↓ 2 callersMethodbuildAuthorEmbed
(@NotNull User user, AcceptedAnswerType answerType)
src/main/java/net/discordjug/javabot/systems/qotw/submissions/SubmissionManager.java:273
↓ 2 callersMethodbuildBanEmbed
(User user, Member bannedBy, String reason)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:363
↓ 2 callersMethodbuildEmbed
(@Nullable String title, String message, Color color)
src/main/java/net/discordjug/javabot/util/Responses.java:177
↓ 2 callersMethodbuildExperienceLeaderboard
(Guild guild, int page, LeaderboardType type)
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/ExperienceLeaderboardSubcommand.java:116
↓ 2 callersMethodbuildGenericExperienceLeaderboard
(int page, int totalAccounts, String description, BiFunction<Integer, Integer, List<T>> accountsReader, Fun
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/ExperienceLeaderboardSubcommand.java:134
↓ 2 callersMethodbuildKickEmbed
(User user, Member kickedBy, String reason)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:370
↓ 2 callersMethodbuildNoAccessEmbed
()
src/main/java/net/discordjug/javabot/listener/DIH4JDAListener.java:98
↓ 2 callersMethodbuildPageControls
(int currentPage, LeaderboardType type)
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/ExperienceLeaderboardSubcommand.java:174
↓ 2 callersMethodbuildReportEmbed
(User reported, User reportedBy, String reason, Channel channel)
src/main/java/net/discordjug/javabot/systems/moderation/report/ReportManager.java:272
↓ 2 callersMethodbuildSearchWebEmbed
Creates the embed which contains the search results. @param query The specified query. @return A {@link MessageEmbed}. @throws IOException If an erro
src/main/java/net/discordjug/javabot/systems/user_commands/search/SearchWebService.java:69
↓ 2 callersMethodbuildServerLockEmbed
The embed that is sent when a user tries to join while the server is locked. @param guild The current guild. @return The {@link MessageEmbed} object.
src/main/java/net/discordjug/javabot/systems/moderation/server_lock/ServerLockManager.java:92
↓ 2 callersMethodbuildTimeoutEmbed
(@NotNull User user, Member timedOutBy, String reason, Duration duration)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:427
↓ 2 callersMethodbuildTimeoutRemovedEmbed
(@NotNull User user, Member timedOutBy, String reason)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:435
↓ 2 callersMethodbuildUnbanEmbed
(long userId, String reason, @NotNull Member unbannedBy)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:377
↓ 2 callersMethodbuildWarnsEmbed
Builds an {@link MessageEmbed} which contains all recents warnings of a user. @param severityInformation object containing information about active w
src/main/java/net/discordjug/javabot/systems/moderation/warn/WarnsListCommand.java:57
↓ 2 callersMethodcache
Caches a single {@link Message} object. @param message The message to cache.
src/main/java/net/discordjug/javabot/data/h2db/message_cache/MessageCache.java:109
↓ 2 callersMethodcanBypassAutomod
Checks if a member can bypass the automod system. @param member the {@link Member} to check @return <code>true</code> if the member is allowed to byp
src/main/java/net/discordjug/javabot/systems/moderation/AutoMod.java:94
← previousnext →101–200 of 1,112, ranked by callers