Exemplo n.º 1
0
        public async Task StatusGate()
        {
            string finalStr = "";
            string id       = await Program.p.GetDb().GetGateChan(Context.Guild.Id);

            if (id != null)
            {
                finalStr += Sentences.GateChannel(Context.Guild.Id, "<#" + id + ">");
            }
            else
            {
                await ReplyAsync(Sentences.NoGateHere(Context.Guild.Id));

                return;
            }
            int total, relative, read;

            relative = Program.p.GetDb().GetAllGuilds(Context.Guild.Id, (await Context.Guild.GetTextChannelAsync(ulong.Parse(id))).IsNsfw, out total, out read).Count;
            await ReplyAsync(finalStr + Environment.NewLine + Sentences.NbGates(Context.Guild.Id, total.ToString(), read.ToString(), relative.ToString()));
        }