在 quick.db 中存储信息然后发送
Storing information in quick.db then sending it
我正在使用 quick.db 在数据库中存储对象
db.set('object', 'A random text')
那么我将如何存储 argument
db.set('argument', args.slice(1).join(" ")) // This won't work I guess
将参数存储到数据库后,我想将其推送到频道。
我不能肯定地说,因为你提供的信息太少了,但我猜你的问题是 args 应该是一个字典,而你目前正在将它加入一个字符串。
// Setting an object in the database:
db.set('userInfo', { difficulty: 'Easy' })
// -> { difficulty: 'Easy' }
希望这对您有所帮助。
我正在使用 quick.db 在数据库中存储对象
db.set('object', 'A random text')
那么我将如何存储 argument
db.set('argument', args.slice(1).join(" ")) // This won't work I guess
将参数存储到数据库后,我想将其推送到频道。
我不能肯定地说,因为你提供的信息太少了,但我猜你的问题是 args 应该是一个字典,而你目前正在将它加入一个字符串。
// Setting an object in the database:
db.set('userInfo', { difficulty: 'Easy' })
// -> { difficulty: 'Easy' }
希望这对您有所帮助。