Skip to content

Commit 1317623

Browse files
committed
encapsulation
1 parent 7753589 commit 1317623

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/Disc.NET/Handlers/HandlerBase.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
using Disc.NET.Configurations;
1+
using System.Text.Json;
2+
using Disc.NET.Configurations;
23
using Disc.NET.Enums;
34

45
namespace Disc.NET.Handlers;
56

67
internal abstract class HandlerBase
78
{
8-
private IHandler? _next;
9+
protected IHandler? _next;
910

1011
public void SetNext(IHandler? next)
1112
{
@@ -18,5 +19,6 @@ public virtual async Task HandleAsync(DiscordWebSocketEventType eventType, strin
1819
await _next.HandleAsync(eventType, contextJson, options);
1920
}
2021
}
22+
2123
}
2224

0 commit comments

Comments
 (0)