Describe the bug
The Clear() method in BaseResponseBuilder does not properly clear the title and description. The first steps to fixing this were taken in 2d5f3a2 but have not solved the solution.
To Reproduce
Steps to reproduce the behavior:
Create a new CommandResponse with a IResponseBuilder and register it to the serviceProvider.
Set the WithTitle() and WithDescription() of the aforementioned IResponseBuilder and Build() it.
Run Clear() on the aforementioned IResponseBuilder.
Rerun step 2 w/out a new title or description. You will notice that they are still there.
Expected behaviorClear() is supposed to remove all properties and fields of an IResponseBuilder, allowing you to build a new response as if it were from scratch.
On which MessageHandler occurred the error (e.g. Console, Discord)?:
Both.
Describe the bug The
Clear()
method inBaseResponseBuilder
does not properly clear the title and description. The first steps to fixing this were taken in 2d5f3a2 but have not solved the solution.To Reproduce Steps to reproduce the behavior:
CommandResponse
with aIResponseBuilder
and register it to the serviceProvider.WithTitle()
andWithDescription()
of the aforementionedIResponseBuilder
andBuild()
it.Clear()
on the aforementionedIResponseBuilder
.Expected behavior
Clear()
is supposed to remove all properties and fields of anIResponseBuilder
, allowing you to build a new response as if it were from scratch.On which MessageHandler occurred the error (e.g. Console, Discord)?: Both.
Screenshots N/A
Additional context N/A