開発環境設定
開発環境設定に関する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);