Exemple #1
0
        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);
        }
Exemple #2
0
        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;
        }
Exemple #3
0
 public FoxCommandContext(FoxContext baseContext, string prefix) : base(baseContext)
 {
     Prefix = prefix;
 }