<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mizuka_123</author_name>
  <author_url>https://blog.hatena.ne.jp/mizuka_123/</author_url>
  <blog_title>てっくのーと</blog_title>
  <blog_url>https://tech.mizuka123.net/</blog_url>
  <categories>
    <anon>Tips</anon>
  </categories>
  <description>discord.pyを使ってDiscord Botを開発しているときに発生した「'Client' object has no attribute 'send_message'」エラーの解決法です。 環境 AWS EC2 Python3.6 Rapptz/discord.py(rewrite版) 解決法 原因はrewrite版を使っていることで、メッセージ送信の記述が異なるためでした。 元の記述 await client.send_message(message.channel, &quot;メッセージ&quot;) 修正後の記述 await message.channel.send(&quot;メッセージ&quot;) 参考 git…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.mizuka123.net%2Fentry%2F2018%2F09%2F30%2F090645&quot; title=&quot;discord.pyを使ったDiscord Botで「&amp;#39;Client&amp;#39; object has no attribute &amp;#39;send_message&amp;#39;」エラーが発生する - てっくのーと&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-09-30 09:06:45</published>
  <title>discord.pyを使ったDiscord Botで「'Client' object has no attribute 'send_message'」エラーが発生する</title>
  <type>rich</type>
  <url>https://tech.mizuka123.net/entry/2018/09/30/090645</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
