MCPcopy Create free account

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

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

↓ 1 callersMethodreplyHelpThanks
Builds and replies {@link ActionRow}s with all members which helped the owner of the {@link HelpManager#postThread} forum post. @param callback The c
src/main/java/net/discordjug/javabot/systems/help/HelpManager.java:83
↓ 1 callersMethodreplyQuestions
Replies with all Question of the Week Questions. @param event The {@link CommandAutoCompleteInteractionEvent} that was fired. @return A {@link List}
src/main/java/net/discordjug/javabot/systems/qotw/commands/questions_queue/RemoveQuestionSubcommand.java:63
↓ 1 callersMethodreplyTags
Replies with all available custom tags. @param guild The current {@link Guild}. @param text The text choices need to match @return A {@link List} wit
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/CustomTagManager.java:62
↓ 1 callersMethodsave
Inserts a single {@link QOTWQuestion}. @param question The {@link QOTWQuestion} to insert. @throws SQLException If an error occurs.
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionQueueRepository.java:32
↓ 1 callersMethodsave
Inserts a new {@link HelpTransaction}. @param transaction The transaction that should be inserted. @return The inserted {@link HelpTransaction}. @thr
src/main/java/net/discordjug/javabot/systems/help/dao/HelpTransactionRepository.java:38
↓ 1 callersMethodsearch
Gets all custom commands for the given guild matching a specified query. A tag matches the query if the name or reply contains the query. @param guil
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/dao/CustomTagRepository.java:132
↓ 1 callersMethodsearchWeb
(@NotNull String searchQuery)
src/main/java/net/discordjug/javabot/systems/user_commands/search/SearchWebService.java:38
↓ 1 callersMethodsendAccountDecrementedNotification
()
src/main/java/net/discordjug/javabot/systems/notification/QOTWNotificationService.java:54
↓ 1 callersMethodsendBanGuildNotification
(User user, String reason, Member moderator)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:328
↓ 1 callersMethodsendBestAnswerNotification
()
src/main/java/net/discordjug/javabot/systems/notification/QOTWNotificationService.java:46
↓ 1 callersMethodsendChunksInOrder
(MessageChannel channel, List<String> messages, int index, Message target, @Nonnull CommandInteraction event)
src/main/java/net/discordjug/javabot/systems/user_commands/format_code/FormatCodeDispatcher.java:57
↓ 1 callersMethodsendDMDormantInfoIfEnabled
(ThreadChannel post, HelpConfig config)
src/main/java/net/discordjug/javabot/systems/help/HelpForumUpdater.java:82
↓ 1 callersMethodsendDeletedMessageToLog
Sends the deleted message's content to the {@link MessageCacheConfig#getMessageCacheLogChannel()}. @param guild The message's {@link Guild}. @param
src/main/java/net/discordjug/javabot/data/h2db/message_cache/MessageCache.java:149
↓ 1 callersMethodsendExpertSubmission
Sends the Expert Applications contents to the {@link ModerationConfig#getApplicationChannel()}. @param event The {@link ModalInteractionEvent} that
src/main/java/net/discordjug/javabot/systems/staff_commands/self_roles/SelfRoleInteractionManager.java:227
↓ 1 callersMethodsendKickGuildNotification
(User user, String reason, Member moderator)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:324
↓ 1 callersMethodsendMoveToChannelMessage
(@NotNull SlashCommandInteractionEvent event, @NotNull GuildMessageChannel channel, @NotNull Message movedTo)
src/main/java/net/discordjug/javabot/systems/user_commands/MoveConversationCommand.java:110
↓ 1 callersMethodsendMovedFromChannelMessage
(@NotNull SlashCommandInteractionEvent event, @NotNull GuildMessageChannel channel)
src/main/java/net/discordjug/javabot/systems/user_commands/MoveConversationCommand.java:115
↓ 1 callersMethodsendNotifications
(SlashCommandInteractionEvent event, Member member, long points, boolean quiet)
src/main/java/net/discordjug/javabot/systems/qotw/commands/qotw_points/ChangePointsSubcommand.java:70
↓ 1 callersMethodsendRemoveTimeoutGuildNotification
(User user, String reason, Member moderator)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:340
↓ 1 callersMethodsendStaffSubmission
Sends the Staff Applications contents to the {@link ModerationConfig#getApplicationChannel()}. @param event The {@link ModalInteractionEvent} that i
src/main/java/net/discordjug/javabot/systems/staff_commands/self_roles/SelfRoleInteractionManager.java:180
↓ 1 callersMethodsendSubmissionDeclinedEmbed
Sends a "your submission was declined"-notification to the {@link QOTWNotificationService#user}. @param status The {@link SubmissionStatus}. Must NOT
src/main/java/net/discordjug/javabot/systems/notification/QOTWNotificationService.java:64
↓ 1 callersMethodsendTimeoutGuildNotification
(User user, String reason, Member moderator, Duration duration)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:336
↓ 1 callersMethodsendToMessageLog
Sends a notification to the message cache 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:41
↓ 1 callersMethodsendUnbanGuildNotification
(User user, String reason, Member moderator)
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:332
↓ 1 callersMethodsendUpdatedMessageToLog
Sends the updated message's content to the {@link MessageCacheConfig#getMessageCacheLogChannel()}. @param updated The new {@link Message}. @param bef
src/main/java/net/discordjug/javabot/data/h2db/message_cache/MessageCache.java:129
↓ 1 callersMethodsendUserNotification
(@NotNull QOTWNotificationService notificationService, Member member)
src/main/java/net/discordjug/javabot/systems/qotw/commands/qotw_points/ChangePointsSubcommand.java:80
↓ 1 callersMethodset
Sets the value of a field to a new value. @param field The field to set. @param parent The object whose property value to set. @param s The str
src/main/java/net/discordjug/javabot/data/config/ReflectionUtils.java:86
↓ 1 callersMethodsetCurrentQOTWChampions
Sets the current QOTW champions for a specific guild. @param guild the guild to set the QOTW champions in @param users the QOTW champions
src/main/java/net/discordjug/javabot/systems/qotw/dao/QOTWChampionRepository.java:37
↓ 1 callersMethodsetOrCreate
Simply sets the state of the specified {@link Preference} for the specified user. If no entry for that user is found, this will simply create a new on
src/main/java/net/discordjug/javabot/systems/user_preferences/UserPreferenceService.java:35
↓ 1 callersMethodsetPointsAtDate
Sets the points of a user at a certain date. @param userId the id of the user to set to points of @param date the date when the points should be mark
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionPointsRepository.java:73
↓ 1 callersMethodsetRequireStaff
(boolean requireStaff)
src/main/java/net/discordjug/javabot/systems/moderation/ModerateCommand.java:48
↓ 1 callersMethodshouldAddInitialEmotes
Whether the bot should add the first upvote and downvote emotes to messages that are eligible for voting. @param guild The guild to get this setting
src/main/java/net/discordjug/javabot/listener/ForumPostVoteListener.java:86
↓ 1 callersMethodshouldInitSchema
(String jdbcUrl)
src/main/java/net/discordjug/javabot/data/h2db/DbHelper.java:82
↓ 1 callersMethodshouldRunFilters
(@NotNull MessageReceivedEvent event)
src/main/java/net/discordjug/javabot/listener/filter/MessageFilterHandler.java:77
↓ 1 callersMethodsortByPoints
Gets all {@link QOTWAccount} and sorts them by their points. @param startDate the minimum date points are considered @return A {@link List} that cont
src/main/java/net/discordjug/javabot/systems/qotw/dao/QuestionPointsRepository.java:85
↓ 1 callersMethodstandardActivities
A list of standard Activities. @param threadPool The thread pool to use for updating activities @return A pre-built implementation of the {@link Pres
src/main/java/net/discordjug/javabot/tasks/PresenceUpdater.java:82
↓ 1 callersMethodsynchronize
Synchronizes Messages saved in the Database with what is currently stored in memory. This action is executed in the background.
src/main/java/net/discordjug/javabot/data/h2db/message_cache/MessageCache.java:88
↓ 1 callersMethodthankHelper
Thanks a single user. @param guild The {@link Guild} the helper is thanked in @param postThread The {@link ThreadChannel} post. @param helperId The
src/main/java/net/discordjug/javabot/systems/help/HelpManager.java:178
↓ 1 callersMethodtoDiscordChunks
Splits {@link #content} into pieces that each fit within {@link #MAX_SIZE}, breaking on newlines where possible so lines are not cut in half. @return
src/main/java/net/discordjug/javabot/systems/user_commands/format_code/Code.java:42
↓ 1 callersMethodtoDiscordMessages
Splits the content into chunks that each fit within Discord's character limit and wraps every chunk in a language-tagged code block. @return the form
src/main/java/net/discordjug/javabot/systems/user_commands/format_code/Code.java:68
↓ 1 callersMethodunban
Unbans a user. @param userId The user's id. @param reason The reason for unbanning this user. @param bannedBy The member who is responsible for unb
src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java:284
↓ 1 callersMethodunban
(ModalInteraction interaction, long memberId, String reason)
src/main/java/net/discordjug/javabot/util/InteractionUtils.java:183
↓ 1 callersMethodunreserveAllHelpChannels
Unreserves any help channels that a leaving user may have reserved. @param user The user who is leaving. @param guild The guild they're leaving.
src/main/java/net/discordjug/javabot/listener/UserLeaveListener.java:56
↓ 1 callersMethodupdateExperience
(double change)
src/main/java/net/discordjug/javabot/systems/help/model/HelpAccount.java:28
↓ 1 callersMethodupdateForm
Synchronizes form object's values with fields in database. @param newData new form data. A form with matching ID will be updated in the
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/dao/FormsRepository.java:272
↓ 1 callersMethodupdateStaffActivity
Updates the staff activity message or creates it if necessary. Called when a tracked staff activity is executed. If no channel is configured for staff
src/main/java/net/discordjug/javabot/systems/staff_activity/StaffActivityService.java:47
↓ 1 callersMethodupdateStarboardMessage
(@NotNull Message message, int stars, @NotNull StarboardConfig config)
src/main/java/net/discordjug/javabot/systems/starboard/StarboardManager.java:180
↓ 1 callersMethodupdateState
(long userId, @NotNull Preference preference, String state)
src/main/java/net/discordjug/javabot/systems/user_preferences/dao/UserPreferenceRepository.java:41
MethodAcceptSuggestionSubcommand
The constructor of this class, which sets the corresponding {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData}. @param botConfig
src/main/java/net/discordjug/javabot/systems/staff_commands/suggestions/AcceptSuggestionSubcommand.java:25
MethodAddEmbedFieldSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param botConfig The main configuration of the bot
src/main/java/net/discordjug/javabot/systems/staff_commands/embeds/AddEmbedFieldSubcommand.java:39
MethodAddFieldFormSubcommand
The main constructor of this subcommand. @param formsRepo the forms repository @param botConfig bot configuration
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/AddFieldFormSubcommand.java:51
MethodAddQuestionSubcommand
The constructor of this class, which sets the corresponding {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData}. @param questionQ
src/main/java/net/discordjug/javabot/systems/qotw/commands/questions_queue/AddQuestionSubcommand.java:39
MethodAddRoleEmojiSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}s. @param botConfig The main configuration of the bot
src/main/java/net/discordjug/javabot/systems/staff_commands/role_emoji/AddRoleEmojiSubcommand.java:29
MethodAddTimeoutSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param botConfig The main configuration of the bot @param moderati
src/main/java/net/discordjug/javabot/systems/moderation/timeout/AddTimeoutSubcommand.java:34
MethodAttachFormSubcommand
The main constructor of this subcommand. @param formsRepo the forms repository @param botConfig bot configuration
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/AttachFormSubcommand.java:55
MethodAutoMod
Constructor of the class, that creates a list of strings with potential spam/scam urls. @param notificationService The {@link QOTWPointsService} @para
src/main/java/net/discordjug/javabot/systems/moderation/AutoMod.java:59
MethodAvatarCommand
The constructor of this class, which sets the corresponding {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData}.
src/main/java/net/discordjug/javabot/systems/user_commands/AvatarCommand.java:24
MethodBanCommand
The constructor of this class, which sets the corresponding {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData}. @param botConfig
src/main/java/net/discordjug/javabot/systems/moderation/BanCommand.java:29
MethodBar
(double singleElement)
src/main/java/net/discordjug/javabot/util/Plotter.java:104
MethodBotConfig
Constructs a new empty configuration. @param dir The path to the directory containing the guild configuration files.
src/main/java/net/discordjug/javabot/data/config/BotConfig.java:51
MethodBotInfoCommand
The constructor of this class, which sets the corresponding {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData}.
src/main/java/net/discordjug/javabot/systems/user_commands/BotInfoCommand.java:29
MethodCachedMessage
(long messageId, long authorId)
src/main/java/net/discordjug/javabot/data/h2db/message_cache/model/CachedMessage.java:25
MethodCaffeineCache
(Cache<K, V> cache)
src/main/java/net/discordjug/javabot/api/routes/CaffeineCache.java:18
MethodChangeMyMindCommand
The constructor of this class, which sets the corresponding {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData}.
src/main/java/net/discordjug/javabot/systems/user_commands/ChangeMyMindCommand.java:42
MethodChangePointsSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param pointsService The {@link QOTWPointsService} @param notifica
src/main/java/net/discordjug/javabot/systems/qotw/commands/qotw_points/ChangePointsSubcommand.java:37
MethodChangeSelfRoleStatusSubcommand
The constructor of this class, which sets the corresponding {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData}. @param notificat
src/main/java/net/discordjug/javabot/systems/staff_commands/self_roles/ChangeSelfRoleStatusSubcommand.java:31
MethodCheckLockStatusSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param botConfig The main configuration of the bot
src/main/java/net/discordjug/javabot/systems/moderation/server_lock/CheckLockStatusSubcommand.java:23
MethodChecks
()
src/main/java/net/discordjug/javabot/util/Checks.java:29
MethodClearSuggestionSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param botConfig The main configuration of the bot
src/main/java/net/discordjug/javabot/systems/staff_commands/suggestions/ClearSuggestionSubcommand.java:24
MethodCloseCommand
The constructor of this class, which sets the corresponding {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData}. @param botConfig
src/main/java/net/discordjug/javabot/systems/help/commands/CloseCommand.java:28
MethodCloseFormSubcommand
The main constructor of this subcommand. @param formsRepo the forms repository @param interactionManager form interaction manager @param bot
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/CloseFormSubcommand.java:38
MethodCode
Creates a code block for the given language and content. @param language the language the code is written in, used for syntax highlighting @param con
src/main/java/net/discordjug/javabot/systems/user_commands/format_code/Code.java:27
MethodColorUtils
()
src/main/java/net/discordjug/javabot/util/ColorUtils.java:11
MethodConfigCommand
The constructor of this class, which sets the corresponding {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData}. @param exportCon
src/main/java/net/discordjug/javabot/systems/configuration/ConfigCommand.java:18
MethodConfigSubcommand
(BotConfig botConfig)
src/main/java/net/discordjug/javabot/systems/configuration/ConfigSubcommand.java:36
MethodConstants
()
src/main/java/net/discordjug/javabot/util/Constants.java:23
MethodCreateCustomTagSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param tagManager The {@link CustomTagManager} @param botConfig Th
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/commands/CreateCustomTagSubcommand.java:43
MethodCreateEmbedSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param botConfig The main configuration of the bot
src/main/java/net/discordjug/javabot/systems/staff_commands/embeds/CreateEmbedSubcommand.java:47
MethodCreateFormSubcommand
The main constructor of this subcommand. @param formsRepo the forms repository @param botConfig bot configuration
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/CreateFormSubcommand.java:36
MethodCreateSelfRoleSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param notificationService The {@link NotificationService}
src/main/java/net/discordjug/javabot/systems/staff_commands/self_roles/CreateSelfRoleSubcommand.java:36
MethodCustomVCAddMemberSubcommand
(CustomVCRepository dataStorage, BotConfig botConfig)
src/main/java/net/discordjug/javabot/systems/custom_vc/commands/CustomVCAddMemberSubcommand.java:16
MethodCustomVCChangeMembersSubcommand
The constructor of this class, which sets the corresponding {@link net.dv8tion.jda.api.interactions.commands.build.SubcommandData}. @param subcommandD
src/main/java/net/discordjug/javabot/systems/custom_vc/commands/CustomVCChangeMembersSubcommand.java:31
MethodCustomVCControlCommand
The constructor of this class, which sets the corresponding {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData}. @param addMember
src/main/java/net/discordjug/javabot/systems/custom_vc/commands/CustomVCControlCommand.java:16
MethodCustomVCRemoveMemberSubcommand
(CustomVCRepository dataStorage, BotConfig botConfig)
src/main/java/net/discordjug/javabot/systems/custom_vc/commands/CustomVCRemoveMemberSubcommand.java:19
MethodDbAdminCommand
This classes constructor which sets the {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData} and adds the corresponding {@link net
src/main/java/net/discordjug/javabot/data/h2db/commands/DbAdminCommand.java:27
MethodDeclineSuggestionSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param botConfig The main configuration of the bot
src/main/java/net/discordjug/javabot/systems/staff_commands/suggestions/DeclineSuggestionSubcommand.java:26
MethodDecrementPointsSubcommand
(QOTWPointsService pointsService, NotificationService notificationService)
src/main/java/net/discordjug/javabot/systems/qotw/commands/qotw_points/DecrementPointsSubcommand.java:19
MethodDeleteCustomTagSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param customTagManager The {@link CustomTagManager} @param botCon
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/commands/DeleteCustomTagSubcommand.java:44
MethodDeleteFormSubcommand
The main constructor of this subcommand. @param formsRepo the forms repository @param botConfig bot configuration
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/DeleteFormSubcommand.java:34
MethodDetachFormSubcommand
The main constructor of this subcommand. @param formsRepo the forms repository @param botConfig bot configuration
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/DetachFormSubcommand.java:46
MethodDetailsFormSubcommand
The main constructor of this subcommand. @param formsRepo the forms repository @param botConfig bot configuration
src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/DetailsFormSubcommand.java:42
MethodDiscardAllWarnsSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param botConfig The main configuration of the bot @param moderati
src/main/java/net/discordjug/javabot/systems/moderation/warn/DiscardAllWarnsSubcommand.java:29
MethodDiscardWarnByIdSubCommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param botConfig The main configuration of the bot @param moderati
src/main/java/net/discordjug/javabot/systems/moderation/warn/DiscardWarnByIdSubCommand.java:27
MethodEditCustomTagSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param customTagManager The {@link CustomTagManager} @param botCon
src/main/java/net/discordjug/javabot/systems/staff_commands/tags/commands/EditCustomTagSubcommand.java:56
MethodEditEmbedSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param botConfig The main configuration of the bot
src/main/java/net/discordjug/javabot/systems/staff_commands/embeds/EditEmbedSubcommand.java:64
MethodEmbedCommand
This classes constructor which sets the {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData} and adds the corresponding {@link net
src/main/java/net/discordjug/javabot/systems/staff_commands/embeds/EmbedCommand.java:19
MethodExceptionLogger
()
src/main/java/net/discordjug/javabot/util/ExceptionLogger.java:11
MethodExperienceLeaderboardSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param helpAccountRepository Dao object that represents the HELP_A
src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/ExperienceLeaderboardSubcommand.java:60
MethodExportConfigSubcommand
The constructor of this class, which sets the corresponding {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData}. @param botConfig
src/main/java/net/discordjug/javabot/systems/configuration/ExportConfigSubcommand.java:23
MethodExportSchemaSubcommand
The constructor of this class, which sets the corresponding {@link SubcommandData}. @param asyncPool The main thread pool for asynchronous operations
src/main/java/net/discordjug/javabot/data/h2db/commands/ExportSchemaSubcommand.java:40
← previousnext →601–700 of 1,112, ranked by callers