mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-01-26 22:02:40 +00:00
update JDA and jda Utilities version
fixed typos in the code
This commit is contained in:
@@ -44,7 +44,7 @@ public class CloseNoLog extends AbstractConditionableCommand {
|
||||
@Override
|
||||
public CommandResult execute(CommandContext commandContext) {
|
||||
ModMailThread thread = modMailThreadManagementService.getByChannel(commandContext.getUserInitiatedContext().getChannel());
|
||||
// we dont have a note, therefore we cant pass any, the method handles this accordingly
|
||||
// we don't have a note, therefore we cant pass any, the method handles this accordingly
|
||||
modMailThreadService.closeModMailThread(thread, commandContext.getChannel(), null, false, false);
|
||||
return CommandResult.fromSuccess();
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* This command can be used to close the mod mail thread without sending a 'closing' message to the user.
|
||||
* This behaves the same way as the default close commmand otherwise
|
||||
* This behaves the same way as the default close command otherwise
|
||||
*/
|
||||
@Component
|
||||
public class CloseSilently extends AbstractConditionableCommand {
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
|
||||
import static dev.sheldan.abstracto.modmail.service.ModMailThreadServiceBean.MODMAIL_CLOSING_MESSAGE_TEXT;
|
||||
|
||||
/**
|
||||
* This listener is used to used to set the initial values of some server specific values, so we dont need to fall
|
||||
* This listener is used to used to set the initial values of some server specific values, so we don't need to fall
|
||||
* back to the default values. The values might not be functional, for example mod mail category id, but their existence
|
||||
* makes things easier
|
||||
*/
|
||||
|
||||
@@ -152,8 +152,8 @@ public class ModMailThreadServiceBean implements ModMailThreadService {
|
||||
* this method is responsible for creating the instance in the database, sending the header in the newly created text channel and forwarding the initial message
|
||||
* by the user (if any), after this is complete, this method executes the method to perform the mod mail notification.
|
||||
* @param aUserInAServer The {@link FullUser} for which a {@link ModMailThread} is being created
|
||||
* @param initialMessage The {@link Message} which was sent by the user to open a thread, this is null, if the thread was oepend via a command
|
||||
* @param channel The created {@link TextChannel} in which the mod mail thread is dealth with
|
||||
* @param initialMessage The {@link Message} which was sent by the user to open a thread, this is null, if the thread was opened via a command
|
||||
* @param channel The created {@link TextChannel} in which the mod mail thread is dealt with
|
||||
* @param userInitiated Whether or not the thread was initiated by a member
|
||||
* @param undoActions The list of actions to undo, in case an exception occurs
|
||||
*/
|
||||
@@ -229,7 +229,7 @@ public class ModMailThreadServiceBean implements ModMailThreadService {
|
||||
@Override
|
||||
public void createModMailPrompt(AUser user, Message initialMessage) {
|
||||
List<AUserInAServer> knownServers = userInServerManagementService.getUserInAllServers(user.getId());
|
||||
// do nothing if we dont know the user
|
||||
// do nothing if we don't know the user
|
||||
if(!knownServers.isEmpty()) {
|
||||
List<ServerChoice> availableGuilds = new ArrayList<>();
|
||||
HashMap<String, AUserInAServer> choices = new HashMap<>();
|
||||
|
||||
@@ -8,7 +8,7 @@ import lombok.Setter;
|
||||
|
||||
/**
|
||||
* This model is used to render any exception happening when executing a command within a {@link ModMailThread}
|
||||
* and this command failing in any capacity. This model is used to render multiple templates (for differnet kinds of
|
||||
* and this command failing in any capacity. This model is used to render multiple templates (for different kinds of
|
||||
* exceptions), all of which might use the information or not.
|
||||
*/
|
||||
@Getter
|
||||
|
||||
Reference in New Issue
Block a user