From eb7d0dfbe79fab0d10883483636d5c300adc1f6d Mon Sep 17 00:00:00 2001 From: Score_Under Date: Sun, 20 Nov 2022 05:27:43 +0000 Subject: [PATCH] Remove unused parameters --- .../discord/canti/functionality/PrivateVoiceChats.scala | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/scala/score/discord/canti/functionality/PrivateVoiceChats.scala b/src/main/scala/score/discord/canti/functionality/PrivateVoiceChats.scala index 06e97b1..2fe7407 100644 --- a/src/main/scala/score/discord/canti/functionality/PrivateVoiceChats.scala +++ b/src/main/scala/score/discord/canti/functionality/PrivateVoiceChats.scala @@ -500,7 +500,7 @@ class PrivateVoiceChats( err <- result.left do invoker.reply(BotMessages.error(err).toMessage) - makeCreateChannelSuccessMessage(name, limit, public, commandName, maybeMistake).toMessage + makeCreateChannelSuccessMessage(name, public, commandName, maybeMistake).toMessage } def retryingParseAndCreateChannel(member: Member): Future[Message] = @@ -516,7 +516,7 @@ class PrivateVoiceChats( .pipe(x => eitherToFutureMessage(x)) .recover { case Error(ErrorResponse.MISSING_PERMISSIONS) => - diagnosePermissionFailure(invoker, category) + diagnosePermissionFailure(category) } case None => @@ -537,7 +537,7 @@ class PrivateVoiceChats( .flatMap(invoker.reply(_)) end createUserOwnedChannel - private def diagnosePermissionFailure(invoker: CommandInvoker, baseCategory: Option[Category]): Message = + private def diagnosePermissionFailure(baseCategory: Option[Category]): Message = baseCategory .flatMap { category => val permsCollection = category.permissionAttachments @@ -565,7 +565,6 @@ class PrivateVoiceChats( private def makeCreateChannelSuccessMessage( name: String, - limit: Int, public: Boolean, commandName: String, maybeMistake: Boolean