I am having a problem with old commands I ran in the python script are staying persistant in the discord server as "available" commands. Is this just an issue of it takes time? This is the code I run
Discord Imports
import discord
from discord.ext import commands
Other Imports
import requests
import time
import json
import os
from dotenv import load_dotenv
load_dotenv()
intents = discord.Intents.all()
bot = commands.Bot(command_prefix='/', intents=intents)
@bot.hybrid_command()
async def ping(ctx: commands.Context):
await ctx.send('pong')
@bot.hybrid_command()
async def yourmom(ctx: commands.Context):
await ctx.send('is cool')
@bot.event
async def on_ready():
print(f'{bot.user} has connected to Discord!')
print('---------')
await bot.tree.sync()
bot.run(os.getenv('DISCORD_TOKEN'))
(other imports not seen here are for twitch integration)