Answer the question
In order to leave comments, you need to log in
How to make a message appear together with the inscription "Thinks"?
The code:
@slash_command(name="play",description="Начать воспроизведение.",options=[Option("search", "А что искать то?", required=True)])
async def _playinslash(self, ctx: commands.Context, *, search: str = None):
await ctx.reply(..., type=5) #Сообщение "Дискорд бот думает"
ctx.voice_state = self.get_voice_state(ctx)
if not ctx.voice_state.voice:
return await ctx.reply("Сперва, пожалуйста напиши /join",type=4)
try:
source = await YTDLSource.create_source(ctx,
search,
loop=self.bot.loop)
except YTDLError as e:
await ctx.send('Ошибка: {}'.format(str(e)))
else:
song = Song(source)
await ctx.voice_state.songs.put(song)
await ctx.reply("<:b654094678543279e1ff53713c1d65e7:939828694577471538>", type=4) #Нужно чтобы появилось вместо "Дискорд бот думает"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question