Chasseur-de-Succes / CDS-BOT

Private discord bot
GNU Affero General Public License v3.0
2 stars 4 forks source link

Commande /ticket en MP #154

Open rick-gnous opened 7 months ago

rick-gnous commented 7 months ago
  Received one or more errors

  1 ExpectedValidationError > s.literal(V)
  |   Expected values to be equals
  |
  |   Expected:
  |   | null
  |
  |   Received:
  |   | ''

  2 ExpectedConstraintError > s.string.lengthGreaterThanOrEqual
  |   Invalid string length
  |
  |   Expected: expected.length >= 1
  |
  |   Received:
  |   | ''

    at _UnionValidator.handle (/home/node/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:1854:23)
    at _UnionValidator.parse (/home/node/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:939:90)
    at EmbedBuilder.setDescription (/home/node/node_modules/@discordjs/builders/dist/index.js:319:26)
    at Object.execute (/home/node/slash_commands/salon.js:110:14)
    at Object.execute (/home/node/events/interactionCreate.js:25:31)
    at Client.<anonymous> (/home/node/util/loader.js:66:54)
    at Client.emit (node:events:530:35)
    at InteractionCreateAction.handle (/home/node/node_modules/discord.js/src/client/actions/InteractionCreate.js:97:12)
    at module.exports [as INTERACTION_CREATE] (/home/node/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
    at WebSocketManager.handlePacket (/home/node/node_modules/discord.js/src/client/websocket/WebSocketManager.js:355:31)
    at WebSocketManager.<anonymous> (/home/node/node_modules/discord.js/src/client/websocket/WebSocketManager.js:239:12)
    at WebSocketManager.emit (/home/node/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:282:31)
    at WebSocketShard.<anonymous> (/home/node/node_modules/@discordjs/ws/dist/index.js:1173:51)
    at WebSocketShard.emit (/home/node/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:282:31)
    at WebSocketShard.onMessage (/home/node/node_modules/@discordjs/ws/dist/index.js:988:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
TypeError: Cannot read properties of null (reading 'id')
    at Object.execute (/home/node/events/interactions/ticket.js:51:43)
    at Object.execute (/home/node/events/interactionCreate.js:8:26)
    at Client.<anonymous> (/home/node/util/loader.js:66:54)
    at Client.emit (node:events:530:35)
    at InteractionCreateAction.handle (/home/node/node_modules/discord.js/src/client/actions/InteractionCreate.js:97:12)
    at module.exports [as INTERACTION_CREATE] (/home/node/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
    at WebSocketManager.handlePacket (/home/node/node_modules/discord.js/src/client/websocket/WebSocketManager.js:355:31)
    at WebSocketManager.<anonymous> (/home/node/node_modules/discord.js/src/client/websocket/WebSocketManager.js:239:12)
    at WebSocketManager.emit (/home/node/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:282:31)
    at WebSocketShard.<anonymous> (/home/node/node_modules/@discordjs/ws/dist/index.js:1173:51)
    at WebSocketShard.emit (/home/node/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:282:31)
    at WebSocketShard.onMessage (/home/node/node_modules/@discordjs/ws/dist/index.js:988:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)