deleted slash command from test
This commit is contained in:
@@ -15,19 +15,6 @@ class Testing(commands.Cog, name='Testing'):
|
|||||||
async def on_ready(self):
|
async def on_ready(self):
|
||||||
logger.info(f'Cog {__name__.split(".")[1]} is ready!.')
|
logger.info(f'Cog {__name__.split(".")[1]} is ready!.')
|
||||||
|
|
||||||
@commands.slash_command(
|
|
||||||
name='select_audio',
|
|
||||||
description='Select Audios from List'
|
|
||||||
)
|
|
||||||
async def select_audio(self, inter, audios: str):
|
|
||||||
pass
|
|
||||||
|
|
||||||
@select_audio.autocomplete('audios')
|
|
||||||
async def _list_audios(self,
|
|
||||||
inter: disnake.ApplicationCommandInteraction,
|
|
||||||
current: str) -> List[OptionChoice]:
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def setup(bot): # an extension must have a setup function
|
def setup(bot): # an extension must have a setup function
|
||||||
bot.add_cog(Testing(bot)) # adding a cog
|
bot.add_cog(Testing(bot)) # adding a cog
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ async def cog_list(fold='./cogs') -> List[str]:
|
|||||||
return cogs_list
|
return cogs_list
|
||||||
|
|
||||||
|
|
||||||
async def work_with_cogs(what_do, bot, cog):
|
async def work_with_cogs(what_do, bot: commands.Bot, cog):
|
||||||
if isinstance(cog, str):
|
if isinstance(cog, str):
|
||||||
cog = cog.split()
|
cog = cog.split()
|
||||||
for _filename in cog:
|
for _filename in cog:
|
||||||
|
|||||||
Reference in New Issue
Block a user