Baracchino-Della-Scuola / Bot

Consider using f-strings PYL-C0209
Performance
Minor
5 months ago2 years old
Formatting a regular string which could be a f-string
19            "ticket-{}".format(interaction.author), overwrites=overwrites
20        )
21        await interaction.channel.send(
22            "Ticket opened in #ticket-{}".format(interaction.author),23            complete_hidden=True,
24        )
25
Formatting a regular string which could be a f-string
16            member: discord.PermissionOverwrite(read_messages=True, send_messages=True),
17        }
18        await interaction.guild.create_text_channel(
19            "ticket-{}".format(interaction.author), overwrites=overwrites20        )
21        await interaction.channel.send(
22            "Ticket opened in #ticket-{}".format(interaction.author),
Formatting a regular string which could be a f-string
55            )
56
57            voice_client.play(
58                source, after=lambda e: print("Player error: %s" % e) if e else None59            )
60            while vc.is_playing():
61                await asyncio.sleep(0.1)
Formatting a regular string which could be a f-string
498                song = Song(source)
499
500                await ctx.voice_state.songs.put(song)
501                await ctx.send("Enqueued {}".format(str(source)))502
503    @_join.before_invoke
504    @_play.before_invoke
Formatting a regular string which could be a f-string
492                source = await YTDLSource.create_source(ctx, search, loop=self.bot.loop)
493            except YTDLError as e:
494                await ctx.send(
495                    "An error occurred while processing this request: {}".format(str(e))496                )
497            else:
498                song = Song(source)