#pragma once
public:
test() {
commandName = "test";
helpDescription = "testing purposes!";
embed_data msgEmbed;
msgEmbed.setDescription("------\nSimply enter !test or /test!\n------");
msgEmbed.setTitle("__**test usage:**__");
msgEmbed.setTimeStamp(getTimeAndDate());
msgEmbed.setColor("fe_fe_fe");
helpEmbed = msgEmbed;
}
unique_ptr<base_function> create() {
return makeUnique<test>();
}
virtual void execute(base_function_arguments& args) {
try {
respond_to_input_event_data& dataPackage {args.eventData};
dataPackage.addModal("test modal", "test_modal", "test modal small", "test_modal", true, 1, 46, text_input_style::paragraph, "test modal",
"test_modal");
dataPackage.type = input_event_response_type::Interaction_Response;
auto newEvent = input_events::respondToInputEventAsync(dataPackage).get();
modal_collector modalCollector {newEvent};
auto modalReturnData = modalCollector.collectModalData(120000).get();
respond_to_input_event_data& dataPackage03 {modalReturnData};
dataPackage03.addContent(modalReturnData.value);
dataPackage03.type = input_event_response_type::Interaction_Response;
input_events::respondToInputEventAsync(dataPackage03);
} catch (...) {
reportException("test::execute()");
}
}
virtual ~test() = default;
};
}
The main namespace for the forward-facing interfaces.
Base class for the command classes.