Exemple #1
0
        private Task _client_JoinedGuild(SocketGuild arg)
        {
            using (BotDbContext dbcontext = new BotDbContext())
            {
                DiscordGuildModel GuildModel = dbcontext.GetGuild(arg.Id);

                if (GuildModel == null)
                {
                    dbcontext.GreateGuild(new DiscordGuildModel()
                    {
                        GuildId = arg.Id
                    });
                }
            }

            return(Task.CompletedTask);
        }