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; }
public EspeonService(EspeonBot espeon, ILogger <EspeonService> logger) { this._espeon = espeon; this._logger = logger; }