Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如果用户有gif,如何显示用户化身_Javascript_Node.js_Discord_Discord.js - Fatal编程技术网

Javascript 如果用户有gif,如何显示用户化身

Javascript 如果用户有gif,如何显示用户化身,javascript,node.js,discord,discord.js,Javascript,Node.js,Discord,Discord.js,每次运行此命令时: const profile = new Discord.MessageEmbed() .setTitle('**You need to set it as an option (ImageURLOptions documentation). Search for the dynamic parameter there. Your code would need to be this way : message.author.displayAva

每次运行此命令时:

        const profile = new Discord.MessageEmbed()
        .setTitle('**You need to set it as an option (ImageURLOptions documentation).

Search for the dynamic parameter there. Your code would need to be this way :

message.author.displayAvatarURL({ dynamic : true })
const profile=new Discord.MessageEmbed()

.setTitle('**您需要将其设置为选项()

在此处搜索动态参数。您的代码需要如下所示:

message.author.displayAvatarURL({dynamic:true})

我想说这可能是不可能的。这似乎是一个很好的功能,可以用来建议Discord。