反正有没有将图像标记为剧透? [英] Is there anyway to mark images as spoiler?

查看:20
本文介绍了反正有没有将图像标记为剧透?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新的不和谐更新添加了将图像和文本标记为文本剧透的功能:您只需输入 ||文本||.对于图片,附件提示底部有一个复选标记:

The new discord update added the feature to mark images and text as spoilers for text: you just have to type || text ||. For images, there is a check mark at the bottom of the attachment prompt:

有没有办法将图像标记为剧透或功能太新?

Is there a way to mark images as spoiler or is the feature too new?

这不起作用:

let image = new Attachment('./img/image.jpg'); 
message.channel.send("|| " + image + " ||");`

推荐答案

    message.channel.send({
        files: [{
          attachment: 'IMG LINK',
          name: 'SPOILER_NAME.jpg'
        }]
      })

这篇关于反正有没有将图像标记为剧透?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆