@napuketto/adapter 0.0.3 → 0.0.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/dist/satori/index.mjs
CHANGED
|
@@ -957,7 +957,7 @@ var GuildListAction = class extends BaseSatoriAction {
|
|
|
957
957
|
this.deps = deps;
|
|
958
958
|
}
|
|
959
959
|
async _handle(_payload) {
|
|
960
|
-
return { data: (await this.deps.groupApi.getGroupList(true)).map((g) => toGuild(g.groupCode, g.groupName)) };
|
|
960
|
+
return { data: (this.deps.groupCache === void 0 ? await this.deps.groupApi.getGroupList(true) : await this.deps.groupCache.listGroupsRefreshed()).map((g) => toGuild(g.groupCode, g.groupName)) };
|
|
961
961
|
}
|
|
962
962
|
};
|
|
963
963
|
/** guild.approve 参数(处理入群邀请)。 */
|