From aaa8df944c9d05e57ab1860de164d8c2af92e2ca Mon Sep 17 00:00:00 2001 From: Ge Date: Thu, 5 Dec 2024 14:09:24 +0800 Subject: [PATCH] Fixes incorrect cast of parameters in CommandBuilder (#3015) --- .../Builders/Commands/CommandBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Interactions/Builders/Commands/CommandBuilder.cs b/src/Discord.Net.Interactions/Builders/Commands/CommandBuilder.cs index 4a63e1fe95..7aed049c6b 100644 --- a/src/Discord.Net.Interactions/Builders/Commands/CommandBuilder.cs +++ b/src/Discord.Net.Interactions/Builders/Commands/CommandBuilder.cs @@ -185,7 +185,7 @@ ICommandBuilder ICommandBuilder.WithNameAsRegex(bool value) => /// ICommandBuilder ICommandBuilder.AddParameters(params IParameterBuilder[] parameters) => - AddParameters(parameters as TParamBuilder); + AddParameters(parameters as TParamBuilder[]); /// ICommandBuilder ICommandBuilder.WithPreconditions(params PreconditionAttribute[] preconditions) =>