디스코드 봇 만들기 #4Slash Command로 임베드 전송하기!
디스코드 봇에서 슬래시 명령어를 사용하려면 discord.appcommands를 활용하면 됩니다. intents = discord.Intents.default() bot = commands.Bot(commandprefix="/", intents=intents)
최신순
디스코드 봇에서 슬래시 명령어를 사용하려면 discord.appcommands를 활용하면 됩니다. intents = discord.Intents.default() bot = commands.Bot(commandprefix="/", intents=intents)
예를 들어… 이런 식으로 하나의 명령어 그룹 안에 여러 개의 기능을 넣는 거죠! class UserCommandGroup(appcommands.Group): def init(self): super().init(name="user", description="유저 관련 명령어…
이번에는 사용자 입력값을 받아서 동작하는 Slash Command 를 만들어볼게요. 예를 들면 /say message:안녕 처럼 말이죠! 이번에도 Python과 discord.py 를 기반으로 합니다. 먼저 아래 코드를 참고해주세요👇
오늘은 디스코드 봇 만들기 시리즈 중에서도, 요즘 대세인 슬래시 커맨드(Slash Command) 를 만들어보려고 합니다. /명령어 형태로 입력하는 그거 아시죠? 일반 텍스트 명령어보다 훨씬 깔끔하고, 자동완성도 돼서 요즘은 거의 필수 기능이에요!