mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-01 19:49:55 +03:00
Use IFeedbackService interface instead of implementation (#178)
This PR replaces usages of the `FeedbackService` implementation with the `IFeedbackService` interface. Using concrete implementations breaks the whole point of dependency injection, so it doesn't make sense to use them
This commit is contained in:
parent
b2879ad35a
commit
5f0d806213
11 changed files with 21 additions and 21 deletions
|
@ -7,7 +7,7 @@ namespace Octobot.Extensions;
|
|||
public static class FeedbackServiceExtensions
|
||||
{
|
||||
public static async Task<Result> SendContextualEmbedResultAsync(
|
||||
this FeedbackService feedback, Result<Embed> embedResult, CancellationToken ct = default)
|
||||
this IFeedbackService feedback, Result<Embed> embedResult, CancellationToken ct = default)
|
||||
{
|
||||
if (!embedResult.IsDefined(out var embed))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue