@chatluna/patchbay 0.1.10 → 0.1.11
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/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git a/lib/index.cjs b/lib/index.cjs
|
|
2
|
-
index 4e1bd28..
|
|
2
|
+
index 4e1bd28..ce022b9 100644
|
|
3
3
|
--- a/lib/index.cjs
|
|
4
4
|
+++ b/lib/index.cjs
|
|
5
5
|
@@ -293,6 +293,7 @@ var decodeGuildMember = /* @__PURE__ */ __name((member) => ({
|
|
@@ -109,3 +109,14 @@ index 4e1bd28..d722f5b 100644
|
|
|
109
109
|
message.elements = import_core.h.parse(message.content);
|
|
110
110
|
message.elements = import_core.h.transform(message.elements, {
|
|
111
111
|
text: /* @__PURE__ */ __name((attrs) => import_core.h.unescape(attrs.content), "text")
|
|
112
|
+
@@ -2273,6 +2293,10 @@ var QQBot = class extends import_core7.Bot {
|
|
113
|
+
await this.internal.deletePrivateMessage(channelId, messageId);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
+ // Group and C2C openids carry no profile endpoint; the avatar is derived from appid + openid.
|
|
117
|
+
+ async getUser(userId) {
|
|
118
|
+
+ return { id: userId, avatar: `https://q.qlogo.cn/qqapp/${this.config.id}/${userId}/640` };
|
|
119
|
+
+ }
|
|
120
|
+
async getGuild(guildId) {
|
|
121
|
+
const data = await this.internal.getGuildInfo(guildId);
|
|
122
|
+
return { id: data.group_openid, name: data.group_name };
|