我在试着做一个发送嵌入的命令。但是由于某些原因,它一直在说DiscordAPIError: Invalid Form Body data.embeds[0].description: This field is required Error,尽管描述不是空格。 我将它托管在heroku中,所以错误来自于日志。 命令脚本: module.exports = {
name: "test",
desc: "A test command",
cmd: async (interaction, utils) => {
awai
我正在尝试使用控制器在ASP (.NET核心)中嵌入一个简单的Power BI报告。我已经正确地获取了embedToken、embedURL和ReportID,但是当我尝试调用powerbi.embed()来初始化报告时,我得到了以下错误:
"ncaught TypeError: this.element.getAttribute is not a function
at e.t.getUniqueId (powerbi.min.js:2)
at e.t.populateConfig (powerbi.min.js:2)
at e.t (powerbi.min.js:2)
at new
我正在尝试创建一个具有该字段并显示用户权限的用户信息命令,但它只给了我一个权限值。我的代码:
@client.command()
async def userinfo(ctx, member: discord.Member = None):
await ctx.message.delete()
member = ctx.author if not member else member
embed = discord.Embed(colour=member.color, timestamp=ctx.message.created_at, title=f'{memb
我想创建一个排行榜,使它在我的不和谐机器人。
在开始之前,我已经创建了一个只有userID和Coins列的JSON经典数据库。
{"3879720334874588161":{"coins":5},"3919222756303420417":{"coins":5}}
现在我想用这个数据库做一个排行榜,但我有一些问题:
(node:15500) UnhandledPromiseRejectionWarning: TypeError: coins.sort is not a function
at Object.module.
我正在尝试这样做,当我在discord.js中执行命令时,机器人将使用作者的显示颜色创建一个嵌入。
let colour = message.member.displayHexColor;
let color = colour.slice(1).trim().split(/ +/g);
message.channel.send({embed: {
color: `${color}`,
description: "A very simple Embed!"
}});
但是看起来embed.color必须是十进制形式的。"displayHexColor“获取
几天后,通过Javascript嵌入YouTube视频的代码就停止工作了。现在,视频加载,但它是不可播放的(播放按钮不可点击),控制台中有此错误:
Uncaught TypeError: a.g.mX is not a function
at O_ (https://www.youtube.com/yts/jsbin/player-en_US-vfl8LqiZp/base.js:3796:24)
at new P_ (https://www.youtube.com/yts/jsbin/player-en_US-vfl8LqiZp/base.js:3791:111)
at new c2 (htt
如何在我需要单词之后删除所有未嵌套的单词
我所拥有的是:
if "\"message\":\"Logged in!\"" in response1.text:
response_time = response1.text[response1.text.find("expiry") + 9 : ]
#datetime.datetime.fromtimestamp(response_time).strftime('%Y-%m-%d %H:%M:%S') dont look to this, that not
我在WordPress TinyMCE编辑器中粘贴链接,如下所示:
我得到了这样的oEmbed对象:
通过像这样在functions.php中放置代码:
<?php
/**
* Usage:
* Paste a gist link into a blog post or page and it will be embedded eg:
* https://gist.github.com/2926827
*
* If a gist has multiple files you can select one using a url
我在我的ready.js上嵌入了一个将它发送到一个通道,它给了我这个错误。
ValidationError: Expected the value to be an object, but received string instead
at ObjectValidator.handle (/root/ZyruzBot/node_modules/@sapphire/shapeshift/dist/index.js:1161:25)
at ObjectValidator.parse (/root/ZyruzBot/node_modules/@sapphire/shapeshi
这是我的代码:
#Ticket
@client.command(pass_context=True)
async def setuppartnership(ctx):
guild = ctx.guild
embed = discord.Embed(
title = 'Richiesta Partnership',
description = 'Vuoi fare partnership? Usa la reazione qui sotto per creare un nuovo ticket.',
尽管所有其他嵌入都能正常工作,但"await bot.send_message(ctx.message.channel,embed=embed)“仍然在日志中发送错误,我不理解它。“机器人”是大多数人称之为客户端的东西。 我已经尝试使用bot.say()来查看通道是否是问题所在,并且尝试重新排列embed语句,使其声明得尽可能靠近发送。代码中的所有其他嵌入都使用相同的格式,几乎没有任何更改,我甚至复制-粘贴它以使其准确。我尝试注释掉它的所有部分,可能导致它的唯一部分要么是add_field语句之一,要么是初始设置,但我以前使用过这一点。 title =