callback method
Future
callback(
- String interactionId, {
- required String token,
- required InteractionResponseType type,
- InteractionApplicationCommandCallbackData? data,
Implementation
Future callback(
String interactionId, {
required String token,
required InteractionResponseType type,
InteractionApplicationCommandCallbackData? data,
}) {
var endpoint = '/interactions/$interactionId/$token/callback';
return _http.request(
endpoint,
converter: _http.asNull,
method: 'post',
body: {
'type': type,
'data': data,
}..filterNullValues(),
);
}