Exemplo n.º 1
0
        public async Task ShowNotifysList()
        {
            string output  = "";
            var    notifys = _notify.GetNotifys(Context.Guild.Id).FindAll(n => !n.Info.Hidden);

            foreach (var notify in notifys)
            {
                if (!notify.Info.Hidden)
                {
                    output += $"**ID:** `{notify.Id}`\n**Name:** {notify.Info.Name}\n**Domain:** {notify.Info.SourceDomain}\n**Channel:** {((await Context.Client.GetChannelAsync(notify.Info.ChannelId)) as ITextChannel).Mention}\n**Type:** {notify.Info.Type.ToString()}\n\n";
                }
            }
            output = String.IsNullOrEmpty(output) ? $"{Context.User.Mention} notifys list is empty" : output;
            await ReplyAsync(output);
        }