Virtual-Royaume / Royaume-Discord-Bot

It is the bot of our Discord community, it offers various utility features. It is written in TypeScript and uses DiscordJS to interact with the Discord API.
9 stars 1 forks source link

Erreur "Invalid Webhook Token" #187

Closed Bluzzi closed 1 year ago

Bluzzi commented 1 year ago

Description de l'issue

.

Quel gestionnaire de paquets utilisez-vous ?

NPM

Version du gestionnaire de paquets utilisé

8

Priorité du bug

Faible (légèrement gênant)

Version de l'OS

Ubuntu

Version de Node.js

19

Message d'erreur

/usr/src/app/node_modules/@discordjs/rest/dist/index.js:640
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^
DiscordAPIError[50027]: Invalid Webhook Token
at handleErrors (/usr/src/app/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:152:10)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at SequentialHandler.runRequest (/usr/src/app/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:399:20)
at SequentialHandler.queueRequest (/usr/src/app/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:169:11)
at REST.request (/usr/src/app/node_modules/@discordjs/rest/src/lib/REST.ts:343:20)
at InteractionWebhook.editMessage (/usr/src/app/node_modules/discord.js/src/structures/Webhook.js:338:15)
at ChatInputCommandInteraction.editReply (/usr/src/app/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:158:17) {
requestBody: {
files: [],
json: {
content: undefined,
tts: false,
nonce: undefined,
embeds: undefined,
components: [],
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: undefined,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined
}
},
rawError: { message: 'Invalid Webhook Token', code: 50027 },
code: 50027,
status: 401,
method: 'PATCH',
url: 'https://discord.com/api/v10/webhooks/831542935014867014/aW50ZXJhY3Rpb246MTA5MjQ1NDUwOTY0NjcxMjg2MjpEOEd1ZnNyQks4Vm5tdWdlVmVSMXh6VzBTRjFrV2lxZHV2VHNoUlpzZmtUMktCcUt6M2FSY3RIOFFKQURWcnNqRHFkN0ROY1M0NTBhQTRkUjhVQ0p4M2Voc2pmMmVZVnNOelBybUJUWlNDMU5XOE9YaHRwRE5DbnBTZUVsUUZuZg/messages/@original';
}