commit
This commit is contained in:
parent
0afd108a82
commit
ab45931f0f
4 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ const { getConvs, addMessage, getMessages, isNewUser, incrementQuota } = require
|
|||
async function addmsg(interaction, client) {
|
||||
await interaction.deferReply();
|
||||
|
||||
quota = isNewUser(interaction.member.user.id, interaction.member.user.username).catch((err) => {
|
||||
quota = await isNewUser(interaction.member.user.id, interaction.member.user.username).catch((err) => {
|
||||
console.log(err);
|
||||
addToLogs(err);
|
||||
});
|
||||
|
|
|
@ -7,7 +7,7 @@ const { isNewUser, incrementQuota } = require('../../libs/mysql');
|
|||
async function dalle (interaction, client) {
|
||||
await interaction.deferReply();
|
||||
|
||||
quota = isNewUser(interaction.member.user.id, interaction.member.user.username).catch((err) => {
|
||||
quota = await isNewUser(interaction.member.user.id, interaction.member.user.username).catch((err) => {
|
||||
console.log(err);
|
||||
addToLogs(err);
|
||||
});
|
||||
|
|
|
@ -7,7 +7,7 @@ const { incrementQuota, isNewUser } = require('../../libs/mysql');
|
|||
async function gptrequest(interaction, client) {
|
||||
await interaction.deferReply();
|
||||
|
||||
quota = isNewUser(interaction.member.user.id, interaction.member.user.username).catch((err) => {
|
||||
quota = await isNewUser(interaction.member.user.id, interaction.member.user.username).catch((err) => {
|
||||
console.log(err);
|
||||
addToLogs(err);
|
||||
});
|
||||
|
|
|
@ -7,7 +7,7 @@ const { incrementQuota, isNewUser } = require('../../libs/mysql');
|
|||
async function quickGptrequest(interaction, client) {
|
||||
await interaction.deferReply();
|
||||
|
||||
quota = isNewUser(interaction.member.user.id, interaction.member.user.username).catch((err) => {
|
||||
quota = await isNewUser(interaction.member.user.id, interaction.member.user.username).catch((err) => {
|
||||
console.log(err);
|
||||
addToLogs(err);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue