Created
March 5, 2020 08:32
-
-
Save hwahyang1/d6f3e6b73c9d1d66360b5b353ec8d44f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 이번 강좌를 위해서 추가적인 모듈은 불러 올 필요가 없습니다. 단순히 메시지 전송 구문을 아래과 같이 바꾸면 됩니다. | |
embed = discord.Embed(title="메인 제목", description="설명", color=0x62c1cc) # Embed의 기본 틀(색상, 메인 제목, 설명)을 잡아줍니다 | |
embed.set_footer(text="하단 설명") # 하단에 들어가는 조그마한 설명을 잡아줍니다 | |
await message.channel.send(embed=embed) # embed를 포함 한 채로 메시지를 전송합니다. | |
await message.channel.send("할 말", embed=embed) # embed와 메시지를 함께 보내고 싶으시면 이렇게 사용하시면 됩니다. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment