title: How do I make my discord.py bot use custom emoji?
body: <p>How can I make my bot use my custom emoji in any discord server?</p>
  <pre><code>@bot.command(pass_context=True)
  async def ping(ctx):
      msg = &quot;Pong :CustomEmoji: {0.author.mention}&quot;.format(ctx.message)
      await bot.say(msg)
  </code></pre>
  <p>Example:
  If I upload some custom emojis on Server 1  and when we use the <code>!ping</code> command (mentioned above) in Server 2 or Server 3 or any server where the bot has access to, it should use the custom emoji.</p>
  <p>Result: <code>Pong with :CustomEmoji:</code></p>