public FoxDbContext(FoxContext context) { Context = context; var db = context.Database; Guild = db.GuildManager.GetOrCreate(context.Guild); Member = db.MemberManager.GetOrCreate(context.Member, context.Guild.Id); User = db.UserManager.GetOrCreate(context.User); Channel = db.ChannelManager.GetOrCreate(context.Channel); }
public FoxContext(FoxContext context) { MessageCreateEventArgs = context.MessageCreateEventArgs; Services = context.Services; Client = context.Client; Guild = context.Guild; Channel = context.Channel; User = context.User; Member = context.Member; Message = context.Message; Configuration = context.Configuration; CommandService = context.CommandService; Database = context.Database; DatabaseContext = context.DatabaseContext; }
public FoxCommandContext(FoxContext baseContext, string prefix) : base(baseContext) { Prefix = prefix; }