title: Why can't I add a nextcord slash command?
body: <p>I am getting this error when trying to make a slash command:</p>
  <p>`
  Ignoring exception in on_guild_available
  Traceback (most recent call last):
  File &quot;/home/runner/Nextcord-First-bot/venv/lib/python3.8/site-packages/nextcord/client.py&quot;, line 499, in _run_event
  await coro(*args, **kwargs)
  File &quot;/home/runner/Nextcord-First-bot/venv/lib/python3.8/site-packages/nextcord/client.py&quot;, line 2403, in on_guild_available
  await self.sync_application_commands(
  File &quot;/home/runner/Nextcord-First-bot/venv/lib/python3.8/site-packages/nextcord/client.py&quot;, line 2186, in sync_application_commands
  await self._connection.sync_application_commands(
  File &quot;/home/runner/Nextcord-First-bot/venv/lib/python3.8/site-packages/nextcord/state.py&quot;, line 825, in sync_application_commands
  await self.register_new_application_commands(data=data, guild_id=guild_id)
  File &quot;/home/runner/Nextcord-First-bot/venv/lib/python3.8/site-packages/nextcord/state.py&quot;, line 1032, in register_new_application_commands
  await self.register_application_command(app_cmd, guild_id)
  File &quot;/home/runner/Nextcord-First-bot/venv/lib/python3.8/site-packages/nextcord/state.py&quot;, line 1067, in register_application_command
  raise e
  File &quot;/home/runner/Nextcord-First-bot/venv/lib/python3.8/site-packages/nextcord/state.py&quot;, line 1059, in register_application_command
  raw_response = await self.http.upsert_guild_command(
  File &quot;/home/runner/Nextcord-First-bot/venv/lib/python3.8/site-packages/nextcord/http.py&quot;, line 374, in request
  raise HTTPException(response, data)
  nextcord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
  In name: Command name is invalid```</p>
  <p>The command takes 2 arguments: Tier and Server. Here is the code snippet for the command:</p>
  <p><code>@bot.slash_command(name=&quot;sendPlay&quot;, description=&quot;Play with someone&quot;, guild_ids=guildIds) async def sendPlay(interaction: Interaction, tier: int, server: int): await bot.get_channel(PlayReqs).send(f&quot;Join @username in ERLC! If you arrest them you can be banned: Server: Tier {str(tier)}, Server {str(server)}.&quot;) await interaction.response.send_message(&quot;Sent Public Invite&quot;) </code>
  Here is the full code:</p>
  <pre><code>import nextcord
  from nextcord.ext import commands
  from nextcord import Interaction, SlashOption, ChannelType
  from nextcord.abc import GuildChannel
  import os
  
  PlayReqs=1010695004362113094
  guildIds=[881678018580467745]
      
      
  
  intents = nextcord.Intents.default()
  intents.message_content = True
  
  bot = commands.Bot(command_prefix=&quot;!&quot;, intents=intents)
  
  #####Events######
  @bot.event
  async def on_ready():
    print(f&quot;Logged in as {bot.user.name}&quot;)
  
  
  
  #####Commands#####
  
    
  @bot.slash_command(name=&quot;sendPlay&quot;, description=&quot;Play with someone&quot;, guild_ids=guildIds)
  async def sendPlay(interaction: Interaction, tier: int, server: int):
    await bot.get_channel(PlayReqs).send(f&quot;Join @username in ERLC! If you arrest them you can be banned: Server: Tier {str(tier)}, Server {str(server)}.&quot;)
    await interaction.response.send_message(&quot;Sent Public Invite&quot;)
  
    
  
  
    
  
  @bot.command(name=&quot;Hi&quot;)
  async def SendMessage(ctx):
    await ctx.send(&quot;Hello!&quot;)
  
  # @bot.slash_command(name=&quot;ping&quot;, description=&quot;This pongs  the user&quot;, guild_ids=[881678018580467745])
  # async def ping(interaction: Interaction, arg: bool):
  #   await interaction.response.send_message(&quot;Sent Invite&quot;)
  #   await bot.get_channel(1010695004362113094).send(f&quot;Do you want to play? Code is {arg}.&quot;)
  
  
  if __name__ == &quot;__main__&quot;:
    bot.run(os.environ['TOKEN'])
  `
  I am running /sendPlay but I am not even getting the bot in the menu. I am a new dev in python so I wonder if its a dumb error? I need details so blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah 
  </code></pre>