Updated to send discord id
This commit is contained in:
@@ -67,7 +67,7 @@ exports.submitPromptTransaction = async (interaction, callback) => {
|
|||||||
const discordTokensUsed = gptResult.usage.total_tokens;
|
const discordTokensUsed = gptResult.usage.total_tokens;
|
||||||
|
|
||||||
if (gptResult){
|
if (gptResult){
|
||||||
createTransaction(gptResult.id, interaction.member.user, discordTokensUsed, gptResult.usage.total_tokens, 1, async (err, transactionResult) => {
|
createTransaction(gptResult.id, interaction.member.id, discordTokensUsed, gptResult.usage.total_tokens, 1, async (err, transactionResult) => {
|
||||||
if (err) callback(err, undefined);
|
if (err) callback(err, undefined);
|
||||||
|
|
||||||
if (transactionResult){
|
if (transactionResult){
|
||||||
|
|||||||
Reference in New Issue
Block a user