嘿,我使用脚本从一个服务器发布到另一个嵌入,但我需要改变颜色从转发嵌入(输出)在这一部分的代码,你也改变了页脚,所以我假设我必须在那里设置嵌入颜色。我已经尝试过很多方法,比如:
embed=discord.Embed(color=0xd10a07)
if message.channel.id in channels_forward_embed:
dest_channel_id = channels_forward_embed[message.channel.id]
if message.embeds:
embed
我制作了超级简单的票证系统,但它不起作用: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.
我正在编辑消息:
chat = client.get_channel(1007301750895677491)
msg = client.fetch_message(1007556250134917170)
await msg.edit(content=discord.File('week_result.png'))
但我错了:
Task exception was never retrieved
future: <Task finished name='Task-14' coro=<week_vipe() done, defined at main
我正在创建一个彩虹嵌入命令,但我真的不知道它应该如何工作。也许您可以查看并帮助我创建命令:D
下面是代码
@bot.commands()
async def rainbowembed(ctx, *, message):
embed = discordEmbed(description=message)
ctx.send(embed=embed)
for i in range(5):
# On this point i dont know what to do...
# I want to switch the color of the e
所以,我找到了这个问题I want to make a multi-page help command using discord.py,但答案让我产生了怀疑。我尝试了一个类似的代码来尝试这个东西,但在循环进行期间,我实际上不能使用任何其他命令。我应该怎么做才能让所有的命令在循环进行时都能工作? import discord
import datetime
from datetime import timedelta
import pytz
from discord.ext import commands
client = discord.Client()
client = comman
我的开发机器位于本地LAN中,有一个本地静态IP地址。仿真器基本上是另一个设备,所以应用程序应该使用本地静态IP地址,而不是localhost或127.0.0.1。所以我有这样一个硬编码的基本URI:
var baseUri = new Uri("http://192.168.0.8:9030/webapi/");
如果其他开发人员需要测试代码,这是不好的。我正在考虑将基本uri放在一个配置文件中,并在部署仿真器之前,使用dev机器的本地IP地址更新配置文件。
Xamarin中是否有内置的配置文件或构建机制来实现这一目的?或者,如何使用带有本地I
你好
我试图让我的不和谐机器人把他从txt文件中读取的东西作为dm发送给一个用户。我已经创建了一个命令,它创建了一个txt文件,它应该可以安全地保护用户创建的帐户的一些细节。现在,我希望用户能够通过在不和谐的聊天中发送命令来查看他的帐户详细信息。
导入
import discord
from random import *
from time import *
from discord.ext import tasks
from discord.ext import commands
import asyncio
import os.path
创建文件
@bot.command()
async
我想让我的机器人把信息发送到这样的聊天中:
await ctx.send("This country is not supported, you can ask me to add it here")
但是要将“这里”变成可点击的链接,在HTML中我会这样做,对吗?
<a href="https://www.youtube.com/" > This country is not supported, you can ask me to add it here </a>
我怎么才能在蟒蛇身上做到呢?