更新时间:2022-05-10 23:35:26
如何获得嵌入"?请注意,'embed' 和 'tag' 总是传递给每个新创建的线程,如有必要,您需要对每个线程进行深拷贝
How do you get 'embed'? Notice that 'embed' and 'tag' are always passed to every newly created thread, you need to do a deepcopy of each if necessary
from copy import deepcopy
for hook in webhooks:
thread.start_new_thread(send_hook,(hook, deepcopy(embed), tag))