このページでは、Discord Bot Sample の内部構造や拡張API、開発者向けの技術情報を解説します。
@tree.command(name="sample", description="サンプルコマンド")
async def sample_command(interaction: discord.Interaction):
await interaction.response.send_message("これはサンプルの応答です")
@tree.command デコレータを利用@client.event でon_ready/on_message等を拡張python-dotenv で.env取得