woodenfish-bot 4.7.4 → 4.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.js +59 -55
- package/lib/index.js +59 -55
- package/package.json +1 -1
- package/typings/index.d.ts +23 -18
package/es/index.js
CHANGED
|
@@ -319,7 +319,7 @@ var Guild = /*#__PURE__*/function () {
|
|
|
319
319
|
}]);
|
|
320
320
|
}();
|
|
321
321
|
|
|
322
|
-
var version = "4.7.
|
|
322
|
+
var version = "4.7.5";
|
|
323
323
|
|
|
324
324
|
function getDefaultExportFromCjs (x) {
|
|
325
325
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -1724,8 +1724,8 @@ var Audio = /*#__PURE__*/function () {
|
|
|
1724
1724
|
}]);
|
|
1725
1725
|
}();
|
|
1726
1726
|
|
|
1727
|
-
function ownKeys$
|
|
1728
|
-
function _objectSpread$
|
|
1727
|
+
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1728
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1729
1729
|
var Mute = /*#__PURE__*/function () {
|
|
1730
1730
|
function Mute(request, config) {
|
|
1731
1731
|
_classCallCheck(this, Mute);
|
|
@@ -1786,7 +1786,7 @@ var Mute = /*#__PURE__*/function () {
|
|
|
1786
1786
|
guildID: guildID
|
|
1787
1787
|
},
|
|
1788
1788
|
// 将options和userIDList合并到一起
|
|
1789
|
-
data: _objectSpread$
|
|
1789
|
+
data: _objectSpread$3(_objectSpread$3({}, options), {}, {
|
|
1790
1790
|
user_ids: userIDList
|
|
1791
1791
|
})
|
|
1792
1792
|
};
|
|
@@ -1982,6 +1982,8 @@ var Schedule = /*#__PURE__*/function () {
|
|
|
1982
1982
|
}]);
|
|
1983
1983
|
}();
|
|
1984
1984
|
|
|
1985
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1986
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1985
1987
|
var Threads = /*#__PURE__*/function () {
|
|
1986
1988
|
function Threads(request, config) {
|
|
1987
1989
|
_classCallCheck(this, Threads);
|
|
@@ -1994,37 +1996,37 @@ var Threads = /*#__PURE__*/function () {
|
|
|
1994
1996
|
// 获取帖子列表
|
|
1995
1997
|
return _createClass(Threads, [{
|
|
1996
1998
|
key: "threads",
|
|
1997
|
-
value: function threads(channelID) {
|
|
1998
|
-
var options = {
|
|
1999
|
+
value: function threads(channelID, requestOptions) {
|
|
2000
|
+
var options = _objectSpread$2({
|
|
1999
2001
|
method: 'GET',
|
|
2000
2002
|
url: getURL('threadsURI'),
|
|
2001
2003
|
rest: {
|
|
2002
2004
|
channelID: channelID
|
|
2003
2005
|
}
|
|
2004
|
-
};
|
|
2006
|
+
}, requestOptions || {});
|
|
2005
2007
|
return this.request(options);
|
|
2006
2008
|
}
|
|
2007
2009
|
|
|
2008
2010
|
// 获取帖子详情
|
|
2009
2011
|
}, {
|
|
2010
2012
|
key: "thread",
|
|
2011
|
-
value: function thread(channelID, threadID) {
|
|
2012
|
-
var options = {
|
|
2013
|
+
value: function thread(channelID, threadID, requestOptions) {
|
|
2014
|
+
var options = _objectSpread$2({
|
|
2013
2015
|
method: 'GET',
|
|
2014
2016
|
url: getURL('threadURI'),
|
|
2015
2017
|
rest: {
|
|
2016
2018
|
channelID: channelID,
|
|
2017
2019
|
threadID: threadID
|
|
2018
2020
|
}
|
|
2019
|
-
};
|
|
2021
|
+
}, requestOptions || {});
|
|
2020
2022
|
return this.request(options);
|
|
2021
2023
|
}
|
|
2022
2024
|
|
|
2023
2025
|
// 发表帖子
|
|
2024
2026
|
}, {
|
|
2025
2027
|
key: "putThreads",
|
|
2026
|
-
value: function putThreads(channelID, _Threads2) {
|
|
2027
|
-
var options = {
|
|
2028
|
+
value: function putThreads(channelID, _Threads2, requestOptions) {
|
|
2029
|
+
var options = _objectSpread$2({
|
|
2028
2030
|
method: 'PUT',
|
|
2029
2031
|
url: getURL('threadsURI'),
|
|
2030
2032
|
rest: {
|
|
@@ -2033,15 +2035,15 @@ var Threads = /*#__PURE__*/function () {
|
|
|
2033
2035
|
data: {
|
|
2034
2036
|
Threads: _Threads2
|
|
2035
2037
|
}
|
|
2036
|
-
};
|
|
2038
|
+
}, requestOptions || {});
|
|
2037
2039
|
return this.request(options);
|
|
2038
2040
|
}
|
|
2039
2041
|
|
|
2040
2042
|
// 发表帖子回复
|
|
2041
2043
|
}, {
|
|
2042
2044
|
key: "putPostReply",
|
|
2043
|
-
value: function putPostReply(channelID, threadID, postID, reply) {
|
|
2044
|
-
var options = {
|
|
2045
|
+
value: function putPostReply(channelID, threadID, postID, reply, requestOptions) {
|
|
2046
|
+
var options = _objectSpread$2({
|
|
2045
2047
|
method: 'PUT',
|
|
2046
2048
|
url: getURL('threadPostRepliesURI'),
|
|
2047
2049
|
rest: {
|
|
@@ -2050,22 +2052,22 @@ var Threads = /*#__PURE__*/function () {
|
|
|
2050
2052
|
postID: postID
|
|
2051
2053
|
},
|
|
2052
2054
|
data: reply
|
|
2053
|
-
};
|
|
2055
|
+
}, requestOptions || {});
|
|
2054
2056
|
return this.request(options);
|
|
2055
2057
|
}
|
|
2056
2058
|
|
|
2057
2059
|
// 删除帖子
|
|
2058
2060
|
}, {
|
|
2059
2061
|
key: "deleteThreads",
|
|
2060
|
-
value: function deleteThreads(channelID, threadID) {
|
|
2061
|
-
var options = {
|
|
2062
|
+
value: function deleteThreads(channelID, threadID, requestOptions) {
|
|
2063
|
+
var options = _objectSpread$2({
|
|
2062
2064
|
method: 'DELETE',
|
|
2063
2065
|
url: getURL('threadURI'),
|
|
2064
2066
|
rest: {
|
|
2065
2067
|
channelID: channelID,
|
|
2066
2068
|
threadID: threadID
|
|
2067
2069
|
}
|
|
2068
|
-
};
|
|
2070
|
+
}, requestOptions || {});
|
|
2069
2071
|
return this.request(options);
|
|
2070
2072
|
}
|
|
2071
2073
|
}]);
|
|
@@ -2140,6 +2142,8 @@ var Interaction = /*#__PURE__*/function () {
|
|
|
2140
2142
|
}]);
|
|
2141
2143
|
}();
|
|
2142
2144
|
|
|
2145
|
+
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2146
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2143
2147
|
var Group = /*#__PURE__*/function () {
|
|
2144
2148
|
function Group(request, config) {
|
|
2145
2149
|
_classCallCheck(this, Group);
|
|
@@ -2150,32 +2154,32 @@ var Group = /*#__PURE__*/function () {
|
|
|
2150
2154
|
}
|
|
2151
2155
|
return _createClass(Group, [{
|
|
2152
2156
|
key: "getGroupInfo",
|
|
2153
|
-
value: function getGroupInfo(groupOpenid) {
|
|
2154
|
-
return this.request({
|
|
2157
|
+
value: function getGroupInfo(groupOpenid, requestOptions) {
|
|
2158
|
+
return this.request(_objectSpread$1({
|
|
2155
2159
|
method: 'GET',
|
|
2156
2160
|
url: getURL('groupInfoURI'),
|
|
2157
2161
|
rest: {
|
|
2158
2162
|
groupOpenid: groupOpenid
|
|
2159
2163
|
},
|
|
2160
2164
|
apiVersion: 'v2'
|
|
2161
|
-
});
|
|
2165
|
+
}, requestOptions || {}));
|
|
2162
2166
|
}
|
|
2163
2167
|
}, {
|
|
2164
2168
|
key: "getGroupBotState",
|
|
2165
|
-
value: function getGroupBotState(groupOpenid) {
|
|
2166
|
-
return this.request({
|
|
2169
|
+
value: function getGroupBotState(groupOpenid, requestOptions) {
|
|
2170
|
+
return this.request(_objectSpread$1({
|
|
2167
2171
|
method: 'GET',
|
|
2168
2172
|
url: getURL('groupBotStateURI'),
|
|
2169
2173
|
rest: {
|
|
2170
2174
|
groupOpenid: groupOpenid
|
|
2171
2175
|
},
|
|
2172
2176
|
apiVersion: 'v2'
|
|
2173
|
-
});
|
|
2177
|
+
}, requestOptions || {}));
|
|
2174
2178
|
}
|
|
2175
2179
|
}, {
|
|
2176
2180
|
key: "getGroupJoinRequests",
|
|
2177
|
-
value: function getGroupJoinRequests(groupOpenid, pager) {
|
|
2178
|
-
return this.request({
|
|
2181
|
+
value: function getGroupJoinRequests(groupOpenid, pager, requestOptions) {
|
|
2182
|
+
return this.request(_objectSpread$1({
|
|
2179
2183
|
method: 'GET',
|
|
2180
2184
|
url: getURL('groupJoinRequestListURI'),
|
|
2181
2185
|
rest: {
|
|
@@ -2183,12 +2187,12 @@ var Group = /*#__PURE__*/function () {
|
|
|
2183
2187
|
},
|
|
2184
2188
|
params: pager || {},
|
|
2185
2189
|
apiVersion: 'v2'
|
|
2186
|
-
});
|
|
2190
|
+
}, requestOptions || {}));
|
|
2187
2191
|
}
|
|
2188
2192
|
}, {
|
|
2189
2193
|
key: "approveGroupJoinRequest",
|
|
2190
|
-
value: function approveGroupJoinRequest(groupOpenid, memberOpenid, options) {
|
|
2191
|
-
return this.request({
|
|
2194
|
+
value: function approveGroupJoinRequest(groupOpenid, memberOpenid, options, requestOptions) {
|
|
2195
|
+
return this.request(_objectSpread$1({
|
|
2192
2196
|
method: 'POST',
|
|
2193
2197
|
url: getURL('groupJoinRequestApprovalURI'),
|
|
2194
2198
|
rest: {
|
|
@@ -2197,24 +2201,24 @@ var Group = /*#__PURE__*/function () {
|
|
|
2197
2201
|
},
|
|
2198
2202
|
data: options,
|
|
2199
2203
|
apiVersion: 'v2'
|
|
2200
|
-
});
|
|
2204
|
+
}, requestOptions || {}));
|
|
2201
2205
|
}
|
|
2202
2206
|
}, {
|
|
2203
2207
|
key: "getGroupRestrictChatSetting",
|
|
2204
|
-
value: function getGroupRestrictChatSetting(groupOpenid) {
|
|
2205
|
-
return this.request({
|
|
2208
|
+
value: function getGroupRestrictChatSetting(groupOpenid, requestOptions) {
|
|
2209
|
+
return this.request(_objectSpread$1({
|
|
2206
2210
|
method: 'GET',
|
|
2207
2211
|
url: getURL('groupRestrictChatSettingURI'),
|
|
2208
2212
|
rest: {
|
|
2209
2213
|
groupOpenid: groupOpenid
|
|
2210
2214
|
},
|
|
2211
2215
|
apiVersion: 'v2'
|
|
2212
|
-
});
|
|
2216
|
+
}, requestOptions || {}));
|
|
2213
2217
|
}
|
|
2214
2218
|
}, {
|
|
2215
2219
|
key: "setGroupRestrictChatSetting",
|
|
2216
|
-
value: function setGroupRestrictChatSetting(groupOpenid, options) {
|
|
2217
|
-
return this.request({
|
|
2220
|
+
value: function setGroupRestrictChatSetting(groupOpenid, options, requestOptions) {
|
|
2221
|
+
return this.request(_objectSpread$1({
|
|
2218
2222
|
method: 'POST',
|
|
2219
2223
|
url: getURL('groupRestrictChatSettingURI'),
|
|
2220
2224
|
rest: {
|
|
@@ -2222,32 +2226,32 @@ var Group = /*#__PURE__*/function () {
|
|
|
2222
2226
|
},
|
|
2223
2227
|
data: options,
|
|
2224
2228
|
apiVersion: 'v2'
|
|
2225
|
-
});
|
|
2229
|
+
}, requestOptions || {}));
|
|
2226
2230
|
}
|
|
2227
2231
|
}, {
|
|
2228
2232
|
key: "getGroupJoinApprovalStrategies",
|
|
2229
|
-
value: function getGroupJoinApprovalStrategies(pager) {
|
|
2230
|
-
return this.request({
|
|
2233
|
+
value: function getGroupJoinApprovalStrategies(pager, requestOptions) {
|
|
2234
|
+
return this.request(_objectSpread$1({
|
|
2231
2235
|
method: 'GET',
|
|
2232
2236
|
url: getURL('groupJoinApprovalStrategiesURI'),
|
|
2233
2237
|
params: pager || {},
|
|
2234
2238
|
apiVersion: 'v2'
|
|
2235
|
-
});
|
|
2239
|
+
}, requestOptions || {}));
|
|
2236
2240
|
}
|
|
2237
2241
|
}, {
|
|
2238
2242
|
key: "createGroupJoinApprovalStrategy",
|
|
2239
|
-
value: function createGroupJoinApprovalStrategy(options) {
|
|
2240
|
-
return this.request({
|
|
2243
|
+
value: function createGroupJoinApprovalStrategy(options, requestOptions) {
|
|
2244
|
+
return this.request(_objectSpread$1({
|
|
2241
2245
|
method: 'POST',
|
|
2242
2246
|
url: getURL('groupJoinApprovalStrategiesURI'),
|
|
2243
2247
|
data: options,
|
|
2244
2248
|
apiVersion: 'v2'
|
|
2245
|
-
});
|
|
2249
|
+
}, requestOptions || {}));
|
|
2246
2250
|
}
|
|
2247
2251
|
}, {
|
|
2248
2252
|
key: "updateGroupJoinApprovalStrategy",
|
|
2249
|
-
value: function updateGroupJoinApprovalStrategy(strategyID, options) {
|
|
2250
|
-
return this.request({
|
|
2253
|
+
value: function updateGroupJoinApprovalStrategy(strategyID, options, requestOptions) {
|
|
2254
|
+
return this.request(_objectSpread$1({
|
|
2251
2255
|
method: 'PATCH',
|
|
2252
2256
|
url: getURL('groupJoinApprovalStrategyURI'),
|
|
2253
2257
|
rest: {
|
|
@@ -2255,24 +2259,24 @@ var Group = /*#__PURE__*/function () {
|
|
|
2255
2259
|
},
|
|
2256
2260
|
data: options,
|
|
2257
2261
|
apiVersion: 'v2'
|
|
2258
|
-
});
|
|
2262
|
+
}, requestOptions || {}));
|
|
2259
2263
|
}
|
|
2260
2264
|
}, {
|
|
2261
2265
|
key: "deleteGroupJoinApprovalStrategy",
|
|
2262
|
-
value: function deleteGroupJoinApprovalStrategy(strategyID) {
|
|
2263
|
-
return this.request({
|
|
2266
|
+
value: function deleteGroupJoinApprovalStrategy(strategyID, requestOptions) {
|
|
2267
|
+
return this.request(_objectSpread$1({
|
|
2264
2268
|
method: 'DELETE',
|
|
2265
2269
|
url: getURL('groupJoinApprovalStrategyURI'),
|
|
2266
2270
|
rest: {
|
|
2267
2271
|
strategyID: strategyID
|
|
2268
2272
|
},
|
|
2269
2273
|
apiVersion: 'v2'
|
|
2270
|
-
});
|
|
2274
|
+
}, requestOptions || {}));
|
|
2271
2275
|
}
|
|
2272
2276
|
}, {
|
|
2273
2277
|
key: "executeGroupJoinApprovalStrategy",
|
|
2274
|
-
value: function executeGroupJoinApprovalStrategy(strategyID) {
|
|
2275
|
-
return this.request({
|
|
2278
|
+
value: function executeGroupJoinApprovalStrategy(strategyID, requestOptions) {
|
|
2279
|
+
return this.request(_objectSpread$1({
|
|
2276
2280
|
method: 'POST',
|
|
2277
2281
|
url: getURL('groupJoinApprovalStrategyExecuteURI'),
|
|
2278
2282
|
rest: {
|
|
@@ -2280,12 +2284,12 @@ var Group = /*#__PURE__*/function () {
|
|
|
2280
2284
|
},
|
|
2281
2285
|
data: {},
|
|
2282
2286
|
apiVersion: 'v2'
|
|
2283
|
-
});
|
|
2287
|
+
}, requestOptions || {}));
|
|
2284
2288
|
}
|
|
2285
2289
|
}, {
|
|
2286
2290
|
key: "updateGroupJoinApprovalStrategyWhitelist",
|
|
2287
|
-
value: function updateGroupJoinApprovalStrategyWhitelist(strategyID, options) {
|
|
2288
|
-
return this.request({
|
|
2291
|
+
value: function updateGroupJoinApprovalStrategyWhitelist(strategyID, options, requestOptions) {
|
|
2292
|
+
return this.request(_objectSpread$1({
|
|
2289
2293
|
method: 'POST',
|
|
2290
2294
|
url: getURL('groupJoinApprovalStrategyWhitelistURI'),
|
|
2291
2295
|
rest: {
|
|
@@ -2293,7 +2297,7 @@ var Group = /*#__PURE__*/function () {
|
|
|
2293
2297
|
},
|
|
2294
2298
|
data: options,
|
|
2295
2299
|
apiVersion: 'v2'
|
|
2296
|
-
});
|
|
2300
|
+
}, requestOptions || {}));
|
|
2297
2301
|
}
|
|
2298
2302
|
}]);
|
|
2299
2303
|
}();
|
package/lib/index.js
CHANGED
|
@@ -321,7 +321,7 @@ var Guild = /*#__PURE__*/function () {
|
|
|
321
321
|
}]);
|
|
322
322
|
}();
|
|
323
323
|
|
|
324
|
-
var version = "4.7.
|
|
324
|
+
var version = "4.7.5";
|
|
325
325
|
|
|
326
326
|
function getDefaultExportFromCjs (x) {
|
|
327
327
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -1726,8 +1726,8 @@ var Audio = /*#__PURE__*/function () {
|
|
|
1726
1726
|
}]);
|
|
1727
1727
|
}();
|
|
1728
1728
|
|
|
1729
|
-
function ownKeys$
|
|
1730
|
-
function _objectSpread$
|
|
1729
|
+
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1730
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1731
1731
|
var Mute = /*#__PURE__*/function () {
|
|
1732
1732
|
function Mute(request, config) {
|
|
1733
1733
|
_classCallCheck(this, Mute);
|
|
@@ -1788,7 +1788,7 @@ var Mute = /*#__PURE__*/function () {
|
|
|
1788
1788
|
guildID: guildID
|
|
1789
1789
|
},
|
|
1790
1790
|
// 将options和userIDList合并到一起
|
|
1791
|
-
data: _objectSpread$
|
|
1791
|
+
data: _objectSpread$3(_objectSpread$3({}, options), {}, {
|
|
1792
1792
|
user_ids: userIDList
|
|
1793
1793
|
})
|
|
1794
1794
|
};
|
|
@@ -1984,6 +1984,8 @@ var Schedule = /*#__PURE__*/function () {
|
|
|
1984
1984
|
}]);
|
|
1985
1985
|
}();
|
|
1986
1986
|
|
|
1987
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1988
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1987
1989
|
var Threads = /*#__PURE__*/function () {
|
|
1988
1990
|
function Threads(request, config) {
|
|
1989
1991
|
_classCallCheck(this, Threads);
|
|
@@ -1996,37 +1998,37 @@ var Threads = /*#__PURE__*/function () {
|
|
|
1996
1998
|
// 获取帖子列表
|
|
1997
1999
|
return _createClass(Threads, [{
|
|
1998
2000
|
key: "threads",
|
|
1999
|
-
value: function threads(channelID) {
|
|
2000
|
-
var options = {
|
|
2001
|
+
value: function threads(channelID, requestOptions) {
|
|
2002
|
+
var options = _objectSpread$2({
|
|
2001
2003
|
method: 'GET',
|
|
2002
2004
|
url: getURL('threadsURI'),
|
|
2003
2005
|
rest: {
|
|
2004
2006
|
channelID: channelID
|
|
2005
2007
|
}
|
|
2006
|
-
};
|
|
2008
|
+
}, requestOptions || {});
|
|
2007
2009
|
return this.request(options);
|
|
2008
2010
|
}
|
|
2009
2011
|
|
|
2010
2012
|
// 获取帖子详情
|
|
2011
2013
|
}, {
|
|
2012
2014
|
key: "thread",
|
|
2013
|
-
value: function thread(channelID, threadID) {
|
|
2014
|
-
var options = {
|
|
2015
|
+
value: function thread(channelID, threadID, requestOptions) {
|
|
2016
|
+
var options = _objectSpread$2({
|
|
2015
2017
|
method: 'GET',
|
|
2016
2018
|
url: getURL('threadURI'),
|
|
2017
2019
|
rest: {
|
|
2018
2020
|
channelID: channelID,
|
|
2019
2021
|
threadID: threadID
|
|
2020
2022
|
}
|
|
2021
|
-
};
|
|
2023
|
+
}, requestOptions || {});
|
|
2022
2024
|
return this.request(options);
|
|
2023
2025
|
}
|
|
2024
2026
|
|
|
2025
2027
|
// 发表帖子
|
|
2026
2028
|
}, {
|
|
2027
2029
|
key: "putThreads",
|
|
2028
|
-
value: function putThreads(channelID, _Threads2) {
|
|
2029
|
-
var options = {
|
|
2030
|
+
value: function putThreads(channelID, _Threads2, requestOptions) {
|
|
2031
|
+
var options = _objectSpread$2({
|
|
2030
2032
|
method: 'PUT',
|
|
2031
2033
|
url: getURL('threadsURI'),
|
|
2032
2034
|
rest: {
|
|
@@ -2035,15 +2037,15 @@ var Threads = /*#__PURE__*/function () {
|
|
|
2035
2037
|
data: {
|
|
2036
2038
|
Threads: _Threads2
|
|
2037
2039
|
}
|
|
2038
|
-
};
|
|
2040
|
+
}, requestOptions || {});
|
|
2039
2041
|
return this.request(options);
|
|
2040
2042
|
}
|
|
2041
2043
|
|
|
2042
2044
|
// 发表帖子回复
|
|
2043
2045
|
}, {
|
|
2044
2046
|
key: "putPostReply",
|
|
2045
|
-
value: function putPostReply(channelID, threadID, postID, reply) {
|
|
2046
|
-
var options = {
|
|
2047
|
+
value: function putPostReply(channelID, threadID, postID, reply, requestOptions) {
|
|
2048
|
+
var options = _objectSpread$2({
|
|
2047
2049
|
method: 'PUT',
|
|
2048
2050
|
url: getURL('threadPostRepliesURI'),
|
|
2049
2051
|
rest: {
|
|
@@ -2052,22 +2054,22 @@ var Threads = /*#__PURE__*/function () {
|
|
|
2052
2054
|
postID: postID
|
|
2053
2055
|
},
|
|
2054
2056
|
data: reply
|
|
2055
|
-
};
|
|
2057
|
+
}, requestOptions || {});
|
|
2056
2058
|
return this.request(options);
|
|
2057
2059
|
}
|
|
2058
2060
|
|
|
2059
2061
|
// 删除帖子
|
|
2060
2062
|
}, {
|
|
2061
2063
|
key: "deleteThreads",
|
|
2062
|
-
value: function deleteThreads(channelID, threadID) {
|
|
2063
|
-
var options = {
|
|
2064
|
+
value: function deleteThreads(channelID, threadID, requestOptions) {
|
|
2065
|
+
var options = _objectSpread$2({
|
|
2064
2066
|
method: 'DELETE',
|
|
2065
2067
|
url: getURL('threadURI'),
|
|
2066
2068
|
rest: {
|
|
2067
2069
|
channelID: channelID,
|
|
2068
2070
|
threadID: threadID
|
|
2069
2071
|
}
|
|
2070
|
-
};
|
|
2072
|
+
}, requestOptions || {});
|
|
2071
2073
|
return this.request(options);
|
|
2072
2074
|
}
|
|
2073
2075
|
}]);
|
|
@@ -2142,6 +2144,8 @@ var Interaction = /*#__PURE__*/function () {
|
|
|
2142
2144
|
}]);
|
|
2143
2145
|
}();
|
|
2144
2146
|
|
|
2147
|
+
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2148
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2145
2149
|
var Group = /*#__PURE__*/function () {
|
|
2146
2150
|
function Group(request, config) {
|
|
2147
2151
|
_classCallCheck(this, Group);
|
|
@@ -2152,32 +2156,32 @@ var Group = /*#__PURE__*/function () {
|
|
|
2152
2156
|
}
|
|
2153
2157
|
return _createClass(Group, [{
|
|
2154
2158
|
key: "getGroupInfo",
|
|
2155
|
-
value: function getGroupInfo(groupOpenid) {
|
|
2156
|
-
return this.request({
|
|
2159
|
+
value: function getGroupInfo(groupOpenid, requestOptions) {
|
|
2160
|
+
return this.request(_objectSpread$1({
|
|
2157
2161
|
method: 'GET',
|
|
2158
2162
|
url: getURL('groupInfoURI'),
|
|
2159
2163
|
rest: {
|
|
2160
2164
|
groupOpenid: groupOpenid
|
|
2161
2165
|
},
|
|
2162
2166
|
apiVersion: 'v2'
|
|
2163
|
-
});
|
|
2167
|
+
}, requestOptions || {}));
|
|
2164
2168
|
}
|
|
2165
2169
|
}, {
|
|
2166
2170
|
key: "getGroupBotState",
|
|
2167
|
-
value: function getGroupBotState(groupOpenid) {
|
|
2168
|
-
return this.request({
|
|
2171
|
+
value: function getGroupBotState(groupOpenid, requestOptions) {
|
|
2172
|
+
return this.request(_objectSpread$1({
|
|
2169
2173
|
method: 'GET',
|
|
2170
2174
|
url: getURL('groupBotStateURI'),
|
|
2171
2175
|
rest: {
|
|
2172
2176
|
groupOpenid: groupOpenid
|
|
2173
2177
|
},
|
|
2174
2178
|
apiVersion: 'v2'
|
|
2175
|
-
});
|
|
2179
|
+
}, requestOptions || {}));
|
|
2176
2180
|
}
|
|
2177
2181
|
}, {
|
|
2178
2182
|
key: "getGroupJoinRequests",
|
|
2179
|
-
value: function getGroupJoinRequests(groupOpenid, pager) {
|
|
2180
|
-
return this.request({
|
|
2183
|
+
value: function getGroupJoinRequests(groupOpenid, pager, requestOptions) {
|
|
2184
|
+
return this.request(_objectSpread$1({
|
|
2181
2185
|
method: 'GET',
|
|
2182
2186
|
url: getURL('groupJoinRequestListURI'),
|
|
2183
2187
|
rest: {
|
|
@@ -2185,12 +2189,12 @@ var Group = /*#__PURE__*/function () {
|
|
|
2185
2189
|
},
|
|
2186
2190
|
params: pager || {},
|
|
2187
2191
|
apiVersion: 'v2'
|
|
2188
|
-
});
|
|
2192
|
+
}, requestOptions || {}));
|
|
2189
2193
|
}
|
|
2190
2194
|
}, {
|
|
2191
2195
|
key: "approveGroupJoinRequest",
|
|
2192
|
-
value: function approveGroupJoinRequest(groupOpenid, memberOpenid, options) {
|
|
2193
|
-
return this.request({
|
|
2196
|
+
value: function approveGroupJoinRequest(groupOpenid, memberOpenid, options, requestOptions) {
|
|
2197
|
+
return this.request(_objectSpread$1({
|
|
2194
2198
|
method: 'POST',
|
|
2195
2199
|
url: getURL('groupJoinRequestApprovalURI'),
|
|
2196
2200
|
rest: {
|
|
@@ -2199,24 +2203,24 @@ var Group = /*#__PURE__*/function () {
|
|
|
2199
2203
|
},
|
|
2200
2204
|
data: options,
|
|
2201
2205
|
apiVersion: 'v2'
|
|
2202
|
-
});
|
|
2206
|
+
}, requestOptions || {}));
|
|
2203
2207
|
}
|
|
2204
2208
|
}, {
|
|
2205
2209
|
key: "getGroupRestrictChatSetting",
|
|
2206
|
-
value: function getGroupRestrictChatSetting(groupOpenid) {
|
|
2207
|
-
return this.request({
|
|
2210
|
+
value: function getGroupRestrictChatSetting(groupOpenid, requestOptions) {
|
|
2211
|
+
return this.request(_objectSpread$1({
|
|
2208
2212
|
method: 'GET',
|
|
2209
2213
|
url: getURL('groupRestrictChatSettingURI'),
|
|
2210
2214
|
rest: {
|
|
2211
2215
|
groupOpenid: groupOpenid
|
|
2212
2216
|
},
|
|
2213
2217
|
apiVersion: 'v2'
|
|
2214
|
-
});
|
|
2218
|
+
}, requestOptions || {}));
|
|
2215
2219
|
}
|
|
2216
2220
|
}, {
|
|
2217
2221
|
key: "setGroupRestrictChatSetting",
|
|
2218
|
-
value: function setGroupRestrictChatSetting(groupOpenid, options) {
|
|
2219
|
-
return this.request({
|
|
2222
|
+
value: function setGroupRestrictChatSetting(groupOpenid, options, requestOptions) {
|
|
2223
|
+
return this.request(_objectSpread$1({
|
|
2220
2224
|
method: 'POST',
|
|
2221
2225
|
url: getURL('groupRestrictChatSettingURI'),
|
|
2222
2226
|
rest: {
|
|
@@ -2224,32 +2228,32 @@ var Group = /*#__PURE__*/function () {
|
|
|
2224
2228
|
},
|
|
2225
2229
|
data: options,
|
|
2226
2230
|
apiVersion: 'v2'
|
|
2227
|
-
});
|
|
2231
|
+
}, requestOptions || {}));
|
|
2228
2232
|
}
|
|
2229
2233
|
}, {
|
|
2230
2234
|
key: "getGroupJoinApprovalStrategies",
|
|
2231
|
-
value: function getGroupJoinApprovalStrategies(pager) {
|
|
2232
|
-
return this.request({
|
|
2235
|
+
value: function getGroupJoinApprovalStrategies(pager, requestOptions) {
|
|
2236
|
+
return this.request(_objectSpread$1({
|
|
2233
2237
|
method: 'GET',
|
|
2234
2238
|
url: getURL('groupJoinApprovalStrategiesURI'),
|
|
2235
2239
|
params: pager || {},
|
|
2236
2240
|
apiVersion: 'v2'
|
|
2237
|
-
});
|
|
2241
|
+
}, requestOptions || {}));
|
|
2238
2242
|
}
|
|
2239
2243
|
}, {
|
|
2240
2244
|
key: "createGroupJoinApprovalStrategy",
|
|
2241
|
-
value: function createGroupJoinApprovalStrategy(options) {
|
|
2242
|
-
return this.request({
|
|
2245
|
+
value: function createGroupJoinApprovalStrategy(options, requestOptions) {
|
|
2246
|
+
return this.request(_objectSpread$1({
|
|
2243
2247
|
method: 'POST',
|
|
2244
2248
|
url: getURL('groupJoinApprovalStrategiesURI'),
|
|
2245
2249
|
data: options,
|
|
2246
2250
|
apiVersion: 'v2'
|
|
2247
|
-
});
|
|
2251
|
+
}, requestOptions || {}));
|
|
2248
2252
|
}
|
|
2249
2253
|
}, {
|
|
2250
2254
|
key: "updateGroupJoinApprovalStrategy",
|
|
2251
|
-
value: function updateGroupJoinApprovalStrategy(strategyID, options) {
|
|
2252
|
-
return this.request({
|
|
2255
|
+
value: function updateGroupJoinApprovalStrategy(strategyID, options, requestOptions) {
|
|
2256
|
+
return this.request(_objectSpread$1({
|
|
2253
2257
|
method: 'PATCH',
|
|
2254
2258
|
url: getURL('groupJoinApprovalStrategyURI'),
|
|
2255
2259
|
rest: {
|
|
@@ -2257,24 +2261,24 @@ var Group = /*#__PURE__*/function () {
|
|
|
2257
2261
|
},
|
|
2258
2262
|
data: options,
|
|
2259
2263
|
apiVersion: 'v2'
|
|
2260
|
-
});
|
|
2264
|
+
}, requestOptions || {}));
|
|
2261
2265
|
}
|
|
2262
2266
|
}, {
|
|
2263
2267
|
key: "deleteGroupJoinApprovalStrategy",
|
|
2264
|
-
value: function deleteGroupJoinApprovalStrategy(strategyID) {
|
|
2265
|
-
return this.request({
|
|
2268
|
+
value: function deleteGroupJoinApprovalStrategy(strategyID, requestOptions) {
|
|
2269
|
+
return this.request(_objectSpread$1({
|
|
2266
2270
|
method: 'DELETE',
|
|
2267
2271
|
url: getURL('groupJoinApprovalStrategyURI'),
|
|
2268
2272
|
rest: {
|
|
2269
2273
|
strategyID: strategyID
|
|
2270
2274
|
},
|
|
2271
2275
|
apiVersion: 'v2'
|
|
2272
|
-
});
|
|
2276
|
+
}, requestOptions || {}));
|
|
2273
2277
|
}
|
|
2274
2278
|
}, {
|
|
2275
2279
|
key: "executeGroupJoinApprovalStrategy",
|
|
2276
|
-
value: function executeGroupJoinApprovalStrategy(strategyID) {
|
|
2277
|
-
return this.request({
|
|
2280
|
+
value: function executeGroupJoinApprovalStrategy(strategyID, requestOptions) {
|
|
2281
|
+
return this.request(_objectSpread$1({
|
|
2278
2282
|
method: 'POST',
|
|
2279
2283
|
url: getURL('groupJoinApprovalStrategyExecuteURI'),
|
|
2280
2284
|
rest: {
|
|
@@ -2282,12 +2286,12 @@ var Group = /*#__PURE__*/function () {
|
|
|
2282
2286
|
},
|
|
2283
2287
|
data: {},
|
|
2284
2288
|
apiVersion: 'v2'
|
|
2285
|
-
});
|
|
2289
|
+
}, requestOptions || {}));
|
|
2286
2290
|
}
|
|
2287
2291
|
}, {
|
|
2288
2292
|
key: "updateGroupJoinApprovalStrategyWhitelist",
|
|
2289
|
-
value: function updateGroupJoinApprovalStrategyWhitelist(strategyID, options) {
|
|
2290
|
-
return this.request({
|
|
2293
|
+
value: function updateGroupJoinApprovalStrategyWhitelist(strategyID, options, requestOptions) {
|
|
2294
|
+
return this.request(_objectSpread$1({
|
|
2291
2295
|
method: 'POST',
|
|
2292
2296
|
url: getURL('groupJoinApprovalStrategyWhitelistURI'),
|
|
2293
2297
|
rest: {
|
|
@@ -2295,7 +2299,7 @@ var Group = /*#__PURE__*/function () {
|
|
|
2295
2299
|
},
|
|
2296
2300
|
data: options,
|
|
2297
2301
|
apiVersion: 'v2'
|
|
2298
|
-
});
|
|
2302
|
+
}, requestOptions || {}));
|
|
2299
2303
|
}
|
|
2300
2304
|
}]);
|
|
2301
2305
|
}();
|
package/package.json
CHANGED
package/typings/index.d.ts
CHANGED
|
@@ -156,19 +156,24 @@ declare const WsObjRequestOptions: (sandbox: boolean) => {
|
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
+
interface RequestTimeoutOptions {
|
|
160
|
+
/** 请求超时时间,单位为毫秒。 */
|
|
161
|
+
timeout?: number;
|
|
162
|
+
}
|
|
163
|
+
|
|
159
164
|
interface GroupAPI {
|
|
160
|
-
getGroupInfo: (groupOpenid: string) => Promise<RestyResponse<GroupInfo>>;
|
|
161
|
-
getGroupBotState: (groupOpenid: string) => Promise<RestyResponse<GroupBotState>>;
|
|
162
|
-
getGroupJoinRequests: (groupOpenid: string, pager?: GroupCursorPager) => Promise<RestyResponse<GroupJoinRequestList>>;
|
|
163
|
-
approveGroupJoinRequest: (groupOpenid: string, memberOpenid: string, options: GroupJoinRequestApproval) => Promise<RestyResponse<Record<string, never>>>;
|
|
164
|
-
getGroupRestrictChatSetting: (groupOpenid: string) => Promise<RestyResponse<GroupRestrictChatSetting>>;
|
|
165
|
-
setGroupRestrictChatSetting: (groupOpenid: string, options: SetGroupRestrictChatSetting) => Promise<RestyResponse<Record<string, never>>>;
|
|
166
|
-
getGroupJoinApprovalStrategies: (pager?: GroupCursorPager) => Promise<RestyResponse<GroupJoinApprovalStrategyList>>;
|
|
167
|
-
createGroupJoinApprovalStrategy: (options: CreateGroupJoinApprovalStrategy) => Promise<RestyResponse<GroupJoinApprovalStrategyResult>>;
|
|
168
|
-
updateGroupJoinApprovalStrategy: (strategyID: string, options: UpdateGroupJoinApprovalStrategy) => Promise<RestyResponse<GroupJoinApprovalStrategyResult>>;
|
|
169
|
-
deleteGroupJoinApprovalStrategy: (strategyID: string) => Promise<RestyResponse<Record<string, never>>>;
|
|
170
|
-
executeGroupJoinApprovalStrategy: (strategyID: string) => Promise<RestyResponse<Record<string, never>>>;
|
|
171
|
-
updateGroupJoinApprovalStrategyWhitelist: (strategyID: string, options: UpdateGroupJoinApprovalStrategyWhitelist) => Promise<RestyResponse<GroupJoinApprovalStrategyWhitelistResult>>;
|
|
165
|
+
getGroupInfo: (groupOpenid: string, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<GroupInfo>>;
|
|
166
|
+
getGroupBotState: (groupOpenid: string, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<GroupBotState>>;
|
|
167
|
+
getGroupJoinRequests: (groupOpenid: string, pager?: GroupCursorPager, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<GroupJoinRequestList>>;
|
|
168
|
+
approveGroupJoinRequest: (groupOpenid: string, memberOpenid: string, options: GroupJoinRequestApproval, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<Record<string, never>>>;
|
|
169
|
+
getGroupRestrictChatSetting: (groupOpenid: string, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<GroupRestrictChatSetting>>;
|
|
170
|
+
setGroupRestrictChatSetting: (groupOpenid: string, options: SetGroupRestrictChatSetting, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<Record<string, never>>>;
|
|
171
|
+
getGroupJoinApprovalStrategies: (pager?: GroupCursorPager, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<GroupJoinApprovalStrategyList>>;
|
|
172
|
+
createGroupJoinApprovalStrategy: (options: CreateGroupJoinApprovalStrategy, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<GroupJoinApprovalStrategyResult>>;
|
|
173
|
+
updateGroupJoinApprovalStrategy: (strategyID: string, options: UpdateGroupJoinApprovalStrategy, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<GroupJoinApprovalStrategyResult>>;
|
|
174
|
+
deleteGroupJoinApprovalStrategy: (strategyID: string, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<Record<string, never>>>;
|
|
175
|
+
executeGroupJoinApprovalStrategy: (strategyID: string, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<Record<string, never>>>;
|
|
176
|
+
updateGroupJoinApprovalStrategyWhitelist: (strategyID: string, options: UpdateGroupJoinApprovalStrategyWhitelist, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<GroupJoinApprovalStrategyWhitelistResult>>;
|
|
172
177
|
}
|
|
173
178
|
interface GroupInfo {
|
|
174
179
|
group_openid: string;
|
|
@@ -853,11 +858,11 @@ type ScheduleToPatch = Partial<Omit<ISchedule, 'id'>>;
|
|
|
853
858
|
* ============= Threads 帖子接口 =============
|
|
854
859
|
*/
|
|
855
860
|
interface ThreadsAPI {
|
|
856
|
-
thread: (channelID: string, threadID: string) => Promise<RestyResponse<any>>;
|
|
857
|
-
threads: (channelID: string) => Promise<RestyResponse<any>>;
|
|
858
|
-
putThreads: (channelID: string, Threads: ThreadsToCreate) => Promise<RestyResponse<any>>;
|
|
859
|
-
putPostReply: (channelID: string, threadID: string, postID: string, reply: ThreadReplyToCreate) => Promise<RestyResponse<any>>;
|
|
860
|
-
deleteThreads: (channelID: string, threadID: string) => Promise<RestyResponse<any>>;
|
|
861
|
+
thread: (channelID: string, threadID: string, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<any>>;
|
|
862
|
+
threads: (channelID: string, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<any>>;
|
|
863
|
+
putThreads: (channelID: string, Threads: ThreadsToCreate, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<any>>;
|
|
864
|
+
putPostReply: (channelID: string, threadID: string, postID: string, reply: ThreadReplyToCreate, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<any>>;
|
|
865
|
+
deleteThreads: (channelID: string, threadID: string, requestOptions?: RequestTimeoutOptions) => Promise<RestyResponse<any>>;
|
|
861
866
|
}
|
|
862
867
|
interface ThreadsToCreate {
|
|
863
868
|
title?: string;
|
|
@@ -1070,4 +1075,4 @@ declare function createOpenAPI(config: Config): OpenAPI;
|
|
|
1070
1075
|
declare function createWebsocket(config: GetWsParam): WebsocketClient;
|
|
1071
1076
|
|
|
1072
1077
|
export { AvailableIntentsEventsEnum, IntentEvents, Intents, OpCode, SessionEvents, WSCodes, WebsocketCloseReason, WebsocketCode, WsEventType, WsObjRequestOptions, createOpenAPI, createWebsocket, selectOpenAPIVersion };
|
|
1073
|
-
export type { APIVersion, Action, AnnounceAPI, Ark, ArkKV, ArkObj, ArkObjKV, AudioAPI, AudioControl, Button, ChannelAPI, ChannelPermissionsAPI, ChannelSubType, ChannelType, Config, CreateGroupJoinApprovalStrategy, CustomKeyboard, DirectMessageAPI, DirectMessageToCreate, Embed, EmbedField, EmbedThumbnail, EventTypes, GetWsParam, GroupAPI, GroupAddRobotEvent, GroupAtMessageCreateEvent, GroupBotState, GroupCursorPager, GroupDelRobotEvent, GroupEventPayloadMap, GroupEventType, GroupGlobalMuteRule, GroupInfo, GroupJoinApplySource, GroupJoinApprovalStrategy, GroupJoinApprovalStrategyGroupAction, GroupJoinApprovalStrategyGroups, GroupJoinApprovalStrategyList, GroupJoinApprovalStrategyResult, GroupJoinApprovalStrategyState, GroupJoinApprovalStrategyWhitelistResult, GroupJoinRequest, GroupJoinRequestApproval, GroupJoinRequestEvent, GroupJoinRequestList, GroupJoinReviewQA, GroupJoinVerifyInfo, GroupJoinVerifyMethod, GroupMemberAddEvent, GroupMemberEvent, GroupMemberMuteState, GroupMemberRemoveEvent, GroupMessageArkData, GroupMessageAttachment, GroupMessageCreateEvent, GroupMessageElement, GroupMessageEvent, GroupMessageReference, GroupMessageResponse, GroupMessageScene, GroupMessageToCreate, GroupMessageType, GroupMessageUser, GroupMsgReceiveEvent, GroupMsgRejectEvent, GroupMuteMode, GroupMuteRecurringRule, GroupMuteScheduleRule, GroupReceiveMessageSetting, GroupRestrictChatSetting, GroupRobotEvent, GuildAPI, GuildMembersPager, GuildPermission, GuildPermissionDemand, GuildPermissionDemandIdentify, GuildPermissionRes, GuildPermissionsAPI, GuildRoles, HeartbeatParam, IAnnounce, IChannel, IChannelPermissions, IChannelRolePermissions, IDirectMessage, IGuild, IMedia, IMember, IMessage, IMessageRes, IOpenAPI, IPinsMessage, IRole, IRoleFilter, ISchedule, IUser, IVoiceMember, InputNotify, IntentEventsMapType, InteractionAPI, InteractionData, MeAPI, MeGuildsReq, Media, MediaToCreate, MemberAPI, MemberAddRoleBody, MessageAPI, MessageAttachment, MessageExtInfo, MessageKeyboard, MessageMarkdown, MessageReference, MessageToCreate, MessagesPager, MuteAPI, MuteOptions, Nullish, OpenAPIRequest, OpenAPIRequestOptions, PatchChannelObj, Permission, PermissionDemandToCreate, PinsMessageAPI, PostChannelObj, ReactionAPI, ReactionObj, ReactionUserListObj, RecommendChannel, RecommendObj, RenderData, RoleAPI, Row, ScheduleAPI, ScheduleRemindType, ScheduleToCreate, ScheduleToPatch, SessionRecord, SetGroupMemberMuteState, SetGroupRestrictChatSetting, ThreadReplyToCreate, ThreadsAPI, ThreadsToCreate, Token, UpdateChannelPermissions, UpdateGroupJoinApprovalStrategy, UpdateGroupJoinApprovalStrategyWhitelist, UpdateRoleRes, WebsocketAPI, WebsocketEventData, WsAddressObj, WsDataInfo, wsResData };
|
|
1078
|
+
export type { APIVersion, Action, AnnounceAPI, Ark, ArkKV, ArkObj, ArkObjKV, AudioAPI, AudioControl, Button, ChannelAPI, ChannelPermissionsAPI, ChannelSubType, ChannelType, Config, CreateGroupJoinApprovalStrategy, CustomKeyboard, DirectMessageAPI, DirectMessageToCreate, Embed, EmbedField, EmbedThumbnail, EventTypes, GetWsParam, GroupAPI, GroupAddRobotEvent, GroupAtMessageCreateEvent, GroupBotState, GroupCursorPager, GroupDelRobotEvent, GroupEventPayloadMap, GroupEventType, GroupGlobalMuteRule, GroupInfo, GroupJoinApplySource, GroupJoinApprovalStrategy, GroupJoinApprovalStrategyGroupAction, GroupJoinApprovalStrategyGroups, GroupJoinApprovalStrategyList, GroupJoinApprovalStrategyResult, GroupJoinApprovalStrategyState, GroupJoinApprovalStrategyWhitelistResult, GroupJoinRequest, GroupJoinRequestApproval, GroupJoinRequestEvent, GroupJoinRequestList, GroupJoinReviewQA, GroupJoinVerifyInfo, GroupJoinVerifyMethod, GroupMemberAddEvent, GroupMemberEvent, GroupMemberMuteState, GroupMemberRemoveEvent, GroupMessageArkData, GroupMessageAttachment, GroupMessageCreateEvent, GroupMessageElement, GroupMessageEvent, GroupMessageReference, GroupMessageResponse, GroupMessageScene, GroupMessageToCreate, GroupMessageType, GroupMessageUser, GroupMsgReceiveEvent, GroupMsgRejectEvent, GroupMuteMode, GroupMuteRecurringRule, GroupMuteScheduleRule, GroupReceiveMessageSetting, GroupRestrictChatSetting, GroupRobotEvent, GuildAPI, GuildMembersPager, GuildPermission, GuildPermissionDemand, GuildPermissionDemandIdentify, GuildPermissionRes, GuildPermissionsAPI, GuildRoles, HeartbeatParam, IAnnounce, IChannel, IChannelPermissions, IChannelRolePermissions, IDirectMessage, IGuild, IMedia, IMember, IMessage, IMessageRes, IOpenAPI, IPinsMessage, IRole, IRoleFilter, ISchedule, IUser, IVoiceMember, InputNotify, IntentEventsMapType, InteractionAPI, InteractionData, MeAPI, MeGuildsReq, Media, MediaToCreate, MemberAPI, MemberAddRoleBody, MessageAPI, MessageAttachment, MessageExtInfo, MessageKeyboard, MessageMarkdown, MessageReference, MessageToCreate, MessagesPager, MuteAPI, MuteOptions, Nullish, OpenAPIRequest, OpenAPIRequestOptions, PatchChannelObj, Permission, PermissionDemandToCreate, PinsMessageAPI, PostChannelObj, ReactionAPI, ReactionObj, ReactionUserListObj, RecommendChannel, RecommendObj, RenderData, RequestTimeoutOptions, RoleAPI, Row, ScheduleAPI, ScheduleRemindType, ScheduleToCreate, ScheduleToPatch, SessionRecord, SetGroupMemberMuteState, SetGroupRestrictChatSetting, ThreadReplyToCreate, ThreadsAPI, ThreadsToCreate, Token, UpdateChannelPermissions, UpdateGroupJoinApprovalStrategy, UpdateGroupJoinApprovalStrategyWhitelist, UpdateRoleRes, WebsocketAPI, WebsocketEventData, WsAddressObj, WsDataInfo, wsResData };
|