mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix: 获取头像报错
This commit is contained in:
parent
075a6d4fd0
commit
0ccc8b7484
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ export class ZZZPlugin extends plugin {
|
|||
userData = userData?.list[0];
|
||||
|
||||
// 获取用户头像
|
||||
let avatar = this.e.bot.avatar;
|
||||
let avatar = this.e?.bot?.avatar || '';
|
||||
if (this.e?.user_id) {
|
||||
avatar = `https://q1.qlogo.cn/g?b=qq&s=0&nk=${this.e.user_id}`;
|
||||
} else if (this.e.member?.getAvatarUrl) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue