discord / cloudflare-sample-app

Example discord bot using Cloudflare Workers
MIT License
287 stars 77 forks source link

Error registering commands #49

Closed doctorvermicelli closed 1 day ago

doctorvermicelli commented 3 weeks ago

when I run $npm run register, it returns:

awwbot@1.0.0 register node src/register.js

Error registering commands Error registering commands https://discord.com/api/v10/commands: 404 Not Found

{"message": "404: Not Found", "code": 0}

JustinBeckwith commented 3 weeks ago

Greetings! This endpoint exists, and seems to be working without issues. Usually when we see something like this, it's because a proxy has blocked the request. Is there any chance you're working on a restricted network of some sort?

doctorvermicelli commented 2 weeks ago

Hey sorry for the trouble. No I wasn't on any restricted network but I fixed it. Have a good day :)

typpo commented 2 weeks ago

Out of curiosity, how'd you manage to fix it?

On Tue, Aug 27, 2024, 10:36 PM Dr. Vermicelli @.***> wrote:

Hey sorry for the trouble. No I wasn't on any restricted network but I fixed it. Have a good day :)

— Reply to this email directly, view it on GitHub https://github.com/discord/cloudflare-sample-app/issues/49#issuecomment-2314356675, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACLYJSZ6KZ7TW6FCUM4NC3ZTVOXBAVCNFSM6AAAAABM3K6HT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJUGM2TMNRXGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

doctorvermicelli commented 2 weeks ago

I just did a restart

Gelmezon commented 1 week ago

i encounter the same problem。i restart my pc and it works