示例#1
0
        public async Task ServerSettings()
        {
            Options guildOptions = GlobalVars.GuildOptions.Single(x => x.GuildID == Context.Guild.Id).Options;

            EmbedBuilder builder = new EmbedBuilder();

            builder.Title = "Server settings";
            builder.AddField("\u0031\u20E3 Log Embedded messages", $"Currently:{(guildOptions.LogEmbeds ? "True" : "False")}");
            builder.AddField("\u0032\u20E3 Log Attached files", $"Currently:{(guildOptions.LogAttachments ? "True" : "False")}");

            RestUserMessage msg = await Context.Channel.SendMessageAsync(null, false, builder.Build());

            GlobalVars.AddSettingsTracker(msg, Context.Message.Author.Id);
            await msg.AddReactionsAsync(new Emoji[] { new Emoji("\u0031\u20E3"), new Emoji("\u0032\u20E3") });
        }