我想获得所有的嵌入内容(包括图像链接),我尝试了如下:
print(msg.embeds)
又回来了:
[<discord.embeds.Embed object at 0x000002E48768CD30>]
[<discord.embeds.Embed object at 0x000002E48768CAF0>]
[<discord.embeds.Embed object at 0x000002E487F04040>]
[<discord.embeds.Embed object at 0x000002E48768CA60>]
[<dis
这是我第一次使用不和谐嵌入,更不用说,制作一个网钩。想弄清楚我做错了什么有点麻烦。希望有人能帮忙!
当我试图用以下代码发送带有消息的嵌入时:
{
"username": "Official Discord Servers",
"avatar_url": "https://imgur.com/a/Cl3zspb",
"embeds": [{
"description": "Here is a list of official Discord servers maintain
尝试使用discord.js将不一致消息编辑为RichEmbedded消息时,出现错误
(node:10860) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
embed.timestamp: Could not parse 1581492006141. Should be ISO8601.
at item.request.gen.end (/rbd/pnpm-volume/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/node_modules/.registry.n
我用一个订单系统(为开发人员)为我的“我的机器”服务器制造了自己的不和谐机器人。
当您对订单的本质做出反应时,消息应该编辑为The Order was claimed by @Discord。
这是可行的,但我也想删除与之一起发送的EmbedMessage。
但是不存在像message.removeEmbeds()或message.deleteEmbeds()这样的方法。
那么,怎么可能这样做呢?
我一直在尝试制作一个删除不一致服务器邀请的不一致机器人,但我不知道怎么做才能让机器人知道链接是什么,这是我到目前为止一直在尝试的:
import discord
from discord.ext import commands
client = commands.Bot(command_prefix = "https://discord.") #This along with the 'def gg' is trying to specify a discord invite
@client.event
async def on_ready():
pr
我有个问题。我已经创建了一个按钮,如果用户按下这个按钮,用户应该跳到另一个文本通道中的某个消息。我该怎么做?有jump_url,但是我如何从按钮引用到消息,用户跳转呢?
class MyView(discord.ui.View): # Create a class called MyView that subclasses discord.ui.View
@discord.ui.button(label="->", style=discord.ButtonStyle.primary, emoji="")
async def button_
我制作了超级简单的票证系统,但它不起作用:c。这是我的代码:
@client.event
async def on_reaction_add(reaction, user):
if 'React with to create a ticket' in reaction.message.embeds and reaction.emoji == '':
role = discord.utils.get(user.guild.roles, name="@everyone")
chan = await user.
我正在编码一个用户信息机器人,我快完成了。我的主要问题是,如果用户除了@everyone之外没有其他角色,而我不知道如何修复它,那么我的机器人就会崩溃
这是我正在犯的错误:
discord.ext.commands.errors.CommandInvokeError:命令引发异常: HTTPException: 400个坏请求(错误代码: 50035):嵌入中的无效表单正文。
这是我的代码:
from unicodedata import name
import discord
from datetime import datetime
from discord.ext import com
因此,基本上,我试图从一个通道获取嵌入,然后将其发送到另一个通道,但它给出了一个错误,说明有一些关于空消息的信息。 完全错误: Received 1 messages
/home/bot/node_modules/discord.js/src/rest/RequestHandler.js:298
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Cannot send an empty message
at RequestHandler.execute