Beispiel #1
0
 public EspeonCommandContext(IServiceScope scope, EspeonBot bot, IPrefix prefix, CachedUserMessage message)
     : base(bot, prefix, message, scope.ServiceProvider)
 {
     if (!(message.Author is CachedMember member && message.Channel is CachedTextChannel channel))
     {
         throw new InvalidOperationException("Bot should not be used in dms");
     }
     ServiceScope = scope;
     Bot          = bot;
     Member       = member;
     Channel      = channel;
 }
Beispiel #2
0
 public EspeonService(EspeonBot espeon, ILogger <EspeonService> logger)
 {
     this._espeon = espeon;
     this._logger = logger;
 }