hallo ich will ein tread erstellen in einem forum und will da ein embed haben aber kriegs nicht hin
@slash_command( name="x", description="x", integration_types={IntegrationType.guild_install, IntegrationType.user_install}, contexts={InteractionContextType.guild, InteractionContextType.private_channel} ) async def x(self,ctx,forum: Option(discord.ForumChannel, "Wähle dein Log Forum aus", channel_types=[ChannelType.forum])): thread = await forum.create_thread( name="Neues Thema vom Bot 🤖", content="Dies ist der Startbeitrag im neuen Thema." ) embed = discord.Embed( title="Thread Test", description="Testen von Treads!\n wenn der text da ist wars erfolgrech.", color=discord.Color.blurple() ) # optional embed.set_footer(text="Bereitgestellt von Universe Bot") await thread.send(embed=embed) await ctx.respond("✅ Thema erstellt: " + thread.jump_url)
@slash_command( name="x", description="x", integration_types={IntegrationType.guild_install, IntegrationType.user_install}, contexts={InteractionContextType.guild, InteractionContextType.private_channel} ) async def x(self,ctx,forum: Option(discord.ForumChannel, "Wähle dein Log Forum aus", channel_types=[ChannelType.forum])): thread = await forum.create_thread( name="Neues Thema vom Bot 🤖", content="Dies ist der Startbeitrag im neuen Thema." ) embed = discord.Embed( title="Thread Test", description="Testen von Treads!\n wenn der text da ist wars erfolgrech.", color=discord.Color.blurple() ) # optional embed.set_footer(text="Bereitgestellt von Universe Bot") await thread.send(embed=embed) await ctx.respond("✅ Thema erstellt: " + thread.jump_url)
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
B
BL4CKLIST・CODING
🔥 ~ LERNE PROGRAMMIEREN! Egal ob Anfänger oder Fortgeschritten: Wir bieten Coding-Hilfe, verständliche Tutorials & eine nette Community 💖