def update_id(db, interaction):
new_id = secrets.token_hex(4)
new_data = copy.deepcopy(interaction)
new_data.update({'ReactionID': new_id})
await db[db.db_cfg.database]['Interactions'].update_one(interaction, {'$set': new_data})
评论列表
文章目录