Skip to content

Commit

Permalink
Remove unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ScoreUnder committed Nov 20, 2022
1 parent 68e91b6 commit eb7d0df
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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] =
Expand All @@ -516,7 +516,7 @@ class PrivateVoiceChats(
.pipe(x => eitherToFutureMessage(x))
.recover {
case Error(ErrorResponse.MISSING_PERMISSIONS) =>
diagnosePermissionFailure(invoker, category)
diagnosePermissionFailure(category)
}

case None =>
Expand All @@ -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
Expand Down Expand Up @@ -565,7 +565,6 @@ class PrivateVoiceChats(

private def makeCreateChannelSuccessMessage(
name: String,
limit: Int,
public: Boolean,
commandName: String,
maybeMistake: Boolean
Expand Down

0 comments on commit eb7d0df

Please sign in to comment.