@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/slack/message/index.js~
packages/ari/slack/message/index.jsModified+1−6
Index: package/packages/ari/slack/message/index.js
===================================================================
--- package/packages/ari/slack/message/index.js
+++ package/packages/ari/slack/message/index.js
@@ -284,27 +284,22 @@
var slackMessageAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: SlackMessageAriResourceOwner,
resourceType: SlackMessageAriResourceType,
resourceIdSlug: "workspaceId/{workspaceId}/channelId/{channelId}/messageId/{messageId}",
resourceIdSegmentFormats: {
workspaceId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
- // eslint-disable-line no-useless-escape
channelId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
- // eslint-disable-line no-useless-escape
messageId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
- // eslint-disable-line no-useless-escape
}
};
// src/slack/message/index.ts
var SlackMessageAri = class _SlackMessageAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._channelId = opts.resourceIdSegmentValues.channelId, this._messageId = opts.resourceIdSegmentValues.messageId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._channelId = opts.resourceIdSegmentValues.channelId, this._messageId = opts.resourceIdSegmentValues.messageId;
}
get workspaceId() {
return this._workspaceId;
}