Slash Commands do not work

Comments

2 comments

  • xSavgs

    I know in python you do this

    headers = {
    "Authorization": "Bot NzhtY435hd...",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
    "Content-Type": "application/json",
    }

    for the headers.

    What seems weird about yours is that link

    https://discord.com/api/v8/applications/applicationid/guilds/guildid/commands

    it says "applicationid" and "guildid" dont you have to replace those with the ids? I dont code in java so sorry if i'm wrong but i think thats what it is

    0
  • Legolas Potter, der Galadhrim

    Ah yes, thanks. I replaced the guild and application id because i dont want any server members i dont know. Now i think i forgot the content type, thanks!

    0

Please sign in to leave a comment.