W
W
Wolf_Yout2022-02-13 12:08:33
Python
Wolf_Yout, 2022-02-13 12:08:33

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) #Нужно чтобы появилось вместо "Дискорд бот думает"

I already tried with msg.edit, type=5, type=4 but with types 5 and 4 it turned out like this:
6208ca6670099149820230.png
And if msg.edit, then it generally gives an error of an unknown "edit"
What should I use to replace the message?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TanderOFF, 2022-02-13
@TanderOFF

Not how, these are already questions for the discord
There are several answers respond , reply , send

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question