question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid invite url

See original GitHub issue
const { MessageEmbed } = require("discord.js");

module.exports = {
  name: "chess",
  description: "Make a Chess voice channel.",
  async execute(bot, message) {
    const voice = message.member?.voice;

    if (!voice?.channel)
      return message.channel.send( "❌ You have to join a voice channel first.");

    if (!voice?.channel.viewable)
      return message.channel.send("❌ I need **\`VIEW_CHANNEL\`** permission.");

    const invite = await bot.discordTogether.createTogetherCode(voice.channelID, "chess").catch(console.error);

    const embed = new MessageEmbed()
      .setDescription(`[Click here the invite link to join it.](${invite.code})`)

    return message.channel.send(embed);
  },
};

This code was working fine some days ago. But now I’m getting this link https://discord.com/invite/50013 I tried with many voice channel , and with all the activities . I’m getting only this link

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
apurv-rcommented, Jun 29, 2021

Error code 50013 is specified by Discord as “You lack permissions to perform that action”. Perhaps check your bot’s permissions for creating invites or accessing that particular VC?

Here’s the Discord Docs for error codes

0reactions
L0SER8228commented, Jun 28, 2021

No

I dont know if I would say solved but I’ve found that when a user joins a discords voice chat for the first time and tries watching YouTube together they receive a 50035 invite, but then if they move to another voice channel and run the command it works and gets them a correct invite link. I’m not sure if the issue is to do with discord-together or my bot not being able to return the users voice channel ID when they first join a voice channel for the first time.

No , it was working fine till some days ago

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix Discord Invite Invalid error - The Windows Club
How do I make my Discord invite valid? · 1] Discord invitation link has expired · 2] Invitation link disabled by the server...
Read more >
Invalid Invite Links - Discord Support
What to check if your invite is "Invalid" · Private or Public Channel: The invite link you were given might go to a...
Read more >
How to Fix Discord Invalid Invite? Follow the Solution Guide
The error “invalid invite Discord” might appear in the following cases: Case 1: The invite codes are typed incorrectly. Invite codes are case- ......
Read more >
5 Ways to Fix Invalid Invite Message on Discord - Saint
Here's how you can leave a server on Discord: First, launch the Discord app on your device. After that, choose a server you...
Read more >
5 Reasons Your Discord Invites Aren't Working
Reason 1: Your Discord Invite Expired · Reason 2: Your Discord Invite Code's Invalid · Reason 3: The Server's Owner Revoked Your Invite...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found