diff --git a/src/classes/Pterodactyl.ts b/src/classes/Pterodactyl.ts index c8ac0366..197d8386 100644 --- a/src/classes/Pterodactyl.ts +++ b/src/classes/Pterodactyl.ts @@ -1,6 +1,6 @@ import { core, db } from '@/app' import { numerosParaLetras, updateProgressAndEstimation } from '@/functions' -import { type PaymentServerPtero, type PaymentUserPtero, type EggObject, type NestObject, type NodeConfigObject, type NodeObject, type Server, type UserObject, PaymentMetadataPtero, UserPtero } from '@/interfaces' +import { type EggObject, type NestObject, type NodeConfigObject, type NodeObject, type PaymentMetadataPtero, type PaymentServerPtero, type PaymentUserPtero, type Server, type UserObject, type UserPtero } from '@/interfaces' import axios, { type AxiosError, type AxiosInstance } from 'axios' export class Pterodactyl { diff --git a/src/discord/components/payments/functions/createCart.ts b/src/discord/components/payments/functions/createCart.ts index ab88ba13..eaefe7c5 100644 --- a/src/discord/components/payments/functions/createCart.ts +++ b/src/discord/components/payments/functions/createCart.ts @@ -205,7 +205,6 @@ export async function createCart (interaction: ButtonInteraction | Ch UUID: genv4(), userID: client.id, channelId: paymentChannel.id, - role, typeEmbed: 0, products: [ { @@ -216,7 +215,8 @@ export async function createCart (interaction: ButtonInteraction | Ch coins, pterodactyl, isIncremental, - isEphemeral + isEphemeral, + role } ] }) diff --git a/src/interfaces/Payments.ts b/src/interfaces/Payments.ts index 3c03dbd8..a793edec 100644 --- a/src/interfaces/Payments.ts +++ b/src/interfaces/Payments.ts @@ -9,7 +9,7 @@ export interface ProductCartData { isEphemeral: boolean // Apenas para não dar problema na criação do ephemeral properties?: undefined - role?: undefined + role?: string // coins?: number messageId?: string @@ -94,7 +94,8 @@ export interface PaymentUserCTRL { export interface UserPtero { id: number - username: string + name?: string // only Local Database + username?: string email: string root_admin: boolean }