开发环境设置
与开发环境设置相关的 API 集合。
// Retrieves the API instance.
IRCXPreferencesAPI api = Main.GetAPI<IRCXPreferencesAPI>();
// Retrieves the list of preference category names.
var preferenceCategories = api.GetPreferencesCategoryNames();
// Retrieves the preference values for the specified category.
var (ret, preferences) = api.GetPreferences(preferenceCategories.ElementAt(0));
if (preferences == null) return;
// Modifies the development environment settings.
preferences["IsAutoSave"].Value = false;
await api.SetPreferencesAsync(preferenceCategories.ElementAt(0), preferences);