Skip to content

Commit 174c64c

Browse files
csmirKubaZ2
andauthored
Have a base parent for all context types so all variations can be pro… (#103)
* Have a base parent for all context types so all variations can be propagated as a single shared parent. * Build oopsie * Apply suggestions from code review Co-authored-by: Kuba_Z2 <[email protected]> --------- Co-authored-by: Armano den Boef <[email protected]> Co-authored-by: Kuba_Z2 <[email protected]>
1 parent 6614925 commit 174c64c

File tree

8 files changed

+12
-7
lines changed

8 files changed

+12
-7
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace NetCord.Services;
22

3-
public interface IChannelContext
3+
public interface IChannelContext : IContext
44
{
55
public TextChannel? Channel { get; }
66
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
namespace NetCord.Services;
2+
3+
public interface IContext
4+
{
5+
}

NetCord.Services/Contexts/IGatewayClientContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace NetCord.Services;
44

5-
public interface IGatewayClientContext
5+
public interface IGatewayClientContext : IContext
66
{
77
public GatewayClient Client { get; }
88
}

NetCord.Services/Contexts/IGuildContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace NetCord.Services;
44

5-
public interface IGuildContext
5+
public interface IGuildContext : IContext
66
{
77
public Guild? Guild { get; }
88

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace NetCord.Services;
22

3-
public interface IInteractionContext
3+
public interface IInteractionContext : IContext
44
{
55
public Interaction Interaction { get; }
66
}

NetCord.Services/Contexts/IRestClientContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace NetCord.Services;
44

5-
public interface IRestClientContext
5+
public interface IRestClientContext : IContext
66
{
77
public RestClient Client { get; }
88
}

NetCord.Services/Contexts/IRestMessageContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace NetCord.Services;
44

5-
public interface IRestMessageContext
5+
public interface IRestMessageContext : IContext
66
{
77
public RestMessage Message { get; }
88
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace NetCord.Services;
22

3-
public interface IUserContext
3+
public interface IUserContext : IContext
44
{
55
public User User { get; }
66
}

0 commit comments

Comments
 (0)