update JDA and jda Utilities version

fixed typos in the code
This commit is contained in:
Sheldan
2020-06-28 12:04:34 +02:00
parent c44eb80fc5
commit e8767429bf
40 changed files with 106 additions and 107 deletions

View File

@@ -10,14 +10,14 @@ import net.dv8tion.jda.api.entities.Message;
import java.time.Instant;
public interface MuteService {
Mute muteMember(Member memberToMute, Member userMuting, String reason, Instant unmuteDate, Message message);
Mute muteAUserInAServer(AUserInAServer member, AUserInAServer userMuting, String reason, Instant unmuteDate, Message message);
Mute muteUser(FullUser userToMute, FullUser userMuting, String reason, Instant unmuteDate, Message message);
Mute muteMember(Member memberToMute, Member userMuting, String reason, Instant unMuteDate, Message message);
Mute muteAUserInAServer(AUserInAServer member, AUserInAServer userMuting, String reason, Instant unMuteDate, Message message);
Mute muteUser(FullUser userToMute, FullUser userMuting, String reason, Instant unMuteDate, Message message);
void applyMuteRole(AUserInAServer aUserInAServer);
void muteMemberWithLog(Member memberToMute, Member memberMuting, String reason, Instant unmuteDate, MuteLog log, Message message);
String startUnmuteJobFor(Instant unmuteDate, Mute mute);
void cancelUnmuteJob(Mute mute);
void unmuteUser(Mute mute);
void muteMemberWithLog(Member memberToMute, Member memberMuting, String reason, Instant unMuteDate, MuteLog log, Message message);
String startUnMuteJobFor(Instant unMuteDate, Mute mute);
void cancelUnMuteJob(Mute mute);
void unMuteUser(Mute mute);
void endMute(Long muteId);
void completelyUnMuteUser(AUserInAServer aUserInAServer);
void completelyUnMuteMember(Member member);

View File

@@ -18,11 +18,11 @@ public interface MuteManagementService {
* @param mutedUser The member which is being muted
* @param mutingUser The member which mutes
* @param reason The reason why this user is getting muted
* @param unmuteDate The date at which the mute should end
* @param unMuteDate The date at which the mute should end
* @param muteMessage The message containing the command which caused the mute
* @return The created mute object containing the mute ID
*/
Mute createMute(AUserInAServer mutedUser, AUserInAServer mutingUser, String reason, Instant unmuteDate, AServerAChannelMessage muteMessage);
Mute createMute(AUserInAServer mutedUser, AUserInAServer mutingUser, String reason, Instant unMuteDate, AServerAChannelMessage muteMessage);
/**
* Finds the mute from the database by the given ID.
@@ -60,7 +60,7 @@ public interface MuteManagementService {
Mute getAMuteOf(AUserInAServer userInAServer);
/**
* Returns any active {@link Mute} of this {@link Member} in the databaes
* Returns any active {@link Mute} of this {@link Member} in the database
* @param member The {@link Member} to search a mute for
* @return The found {@link Mute}, and null if none was found
*/
@@ -68,7 +68,7 @@ public interface MuteManagementService {
/**
* Retrieves all active mutes of the given {@link AUserInAServer} in a collection
* @param aUserInAServer The {@link AUserInAServer} to search the actie mutes for
* @param aUserInAServer The {@link AUserInAServer} to search the active mutes for
* @return A collection of {@link Mute} objects of the user which are active
*/
List<Mute> getAllMutesOf(AUserInAServer aUserInAServer);