1- using Disc . NET . Client . SDK ;
2- using Disc . NET . Client . SDK . Interfaces ;
3- using Disc . NET . Client . SDK . Messages ;
4- using Disc . NET . Commands . Contexts . Models ;
5- using Disc . NET . Shared . Configurations ;
1+ using Disc . NET . Commands . Contexts . Models ;
2+ using Disc . NET . Commands . Responses ;
63
74namespace Disc . NET . Commands . Contexts
85{
96 public class CommandContext : IContext
107 {
11- public string Id { get ; set ; } = string . Empty ;
8+ public string Id { get ; set ; } = string . Empty ;
129 public Author ? Author { get ; set ; }
1310
14- public int ChannelType { get ; set ; }
11+ public int ChannelType { get ; set ; }
1512 public string ChannelId { get ; set ; } = string . Empty ;
1613 public string GuildId { get ; set ; } = string . Empty ;
1714 public string ? Content { get ; set ; } = string . Empty ;
@@ -22,15 +19,5 @@ public class CommandContext : IContext
2219
2320 public CommandResponse Response { get ; set ; }
2421 }
25-
26- public class CommandResponse ( AppConfiguration appConfiguration )
27- {
28- private readonly IClient _client = ClientSingleton . GetInstance ( appConfiguration ) ;
29- public string ChannelId { get ; set ; } = string . Empty ;
30-
31- public async Task SendMessageAsync ( ApiMessage message , CancellationToken cancellation = default )
32- {
33- await _client . SendMessageAsync ( ChannelId , message , cancellation ) ;
34- }
35- }
3622}
23+
0 commit comments