fix(core): update

This commit is contained in:
Philipp Kunz 2019-09-08 19:37:13 +02:00
parent f7e1df2e64
commit 47f1e97386

View File

@ -9,11 +9,12 @@ export class Slackme {
}
async sendMessage(messageOptionsArg: IMessageOptions, channelArg: string = 'general') {
await plugins.smartrequest.postJson(`${this.baseUrl}${this.postRoute}`, {
const response = await plugins.smartrequest.postJson(`${this.baseUrl}${this.postRoute}`, {
requestBody: {
channel: channelArg,
attachments: [messageOptionsArg]
}
});
return response;
}
}