Hello I am currently coding an Ticket System and when I click ob button xy the name should get replaced from
🔵 | test to ⚪ | test
that worked untli now good but I discoverd an Error. When I Click the Button and restart the Bot and change everything back to normal it just doesnt work anymore
channel = client.get_channel(interaction.channel.id)
print(channel)
if channel.category.id != termin_abholung.id:
print('xx')
embed = disnake.Embed(
description=f'Du wurdest auf die **Warteliste** gesetzt, ich bitte dich bei der nächsten ankündigung in {terminvergabe_channel.mention} ins Wartezimmer zu kommen!',
color=config.color)
embed.set_author(name='Warteliste', icon_url='attachment://author.gif')
embed.set_image(url='attachment://image.gif')
print('xx')
try:
await channel.edit(name=f'🔵{channel.name.replace("⚪", "").replace("⚫", "").replace("🔵", "")}')
except:
print('Error')
print('xx')
await interaction.response.send_message(embed=embed, files=[author, image])