Пример #1
0
        public async Task StartRaid()
        {
            RaidInfo newRaid = new RaidInfo();

            newRaid.DateOfRaid = DateTime.UtcNow;

            _db.Raids.Add(newRaid);
            await _db.SaveChangesAsync();

            Globals._activeRaid = newRaid;

            await _commands.CheckUsersInRaidChannel().ConfigureAwait(false);

            await Context.Channel.SendMessageAsync("", false, Embeds.RaidStarted(Globals._activeRaid, Context.User as IGuildUser)).ConfigureAwait(false);
        }