Skip to content

Commit 7e60b52

Browse files
authored
Comando de invocar tal personagem :D
1 parent 777bafb commit 7e60b52

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

command/roleplay/invocar.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import discord
2+
from discord.ext import commands
3+
from discord import app_commands
4+
5+
intents = discord.Intents.default()
6+
intents.members = True
7+
8+
bot = commands.Bot(command_prefix='+', intents=intents)
9+
10+
11+
@bot.tree.command(name="invocar", description="Invoque algum personagem!")
12+
@app_commands.describe(personagem="O Personagem que você vai invocar")
13+
async def invocar(interaction: discord.Interaction, personagem: str):
14+
15+
await interaction.response.defer()
16+
17+
embed = discord.Embed(
18+
title="Invocação Suprema!",
19+
description=f"💥 {interaction.user.mention} invocou {personagem}!"
20+
)
21+
22+
embed.set_footer(text="Invocação")
23+
24+
25+
await interaction.followup.send(embed=embed)

0 commit comments

Comments
 (0)