fix(core): update
This commit is contained in:
parent
f7e1df2e64
commit
47f1e97386
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user