Galaxy-Space-1 / command-Say

0 stars 0 forks source link

Discord / command #2

Open Galaxy-Space-1 opened 5 months ago

Galaxy-Space-1 commented 5 months ago
@bot.slash_command(description="Lass den Bot eine Nachricht senden")
async def say(
        ctx,
        text: Option(str, "Der Text, den du senden möchtest"), # type: ignore
        channel: Option(discord.TextChannel, "Der Channel, in den du die Nachricht senden möchtest") # type: ignore
):
    await channel.send(text)
    await ctx.respond("Nachricht gesendet", ephemeral=True)