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') {
|
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: {
|
requestBody: {
|
||||||
channel: channelArg,
|
channel: channelArg,
|
||||||
attachments: [messageOptionsArg]
|
attachments: [messageOptionsArg]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
return response;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user