Код:
@commands.command(name='replay',aliases=['re'])
async def _re(self, ctx: commands.Context):
data = dict()
__slots__ = ('source', 'requester')
source = YTDLSource
self.source = source
self.source.title = data.get('title')
# self.songs = SongQueue()
# ctx.voice_state.skip()
# async with timeout(180):
# self.current = await self.songs.get()
# recreate = self.current.name()
#{0.source.title}.format(self)
msg = await ctx.reply('<a:ee98:921363226061598780> **MrWolf Bot** думает...')
try:
source = await YTDLSource.create_source(ctx, self.source.title, 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)
Ошибка:
Command raised an exception: TypeError: expected string or bytes-like object