I put a command into my discord bot but only want it to be available in my personal discord, when I start the bot the command doesn't sync and doesn't appear in any of the discords.
@bot.tree.command(name="guildids", description="Displays all guilds the bot is in")
@app_commands.guilds(discord.Object(id="myguildIDnumber"))
async def guildids(interaction: discord.Interaction):
if interaction.guild and interaction.guild.id == mldDiscord.ident:
fields = {}
for guild in bot.guilds:
fields[guild.name] = f"ID: {guild.id}"
embed = create_general_embed("Guild IDs", "List of all guilds the bot is in", fields)
await interaction.response.send_message(embed=embed)