flask update discord.py code example Example 1: how to import discord in python py -3 -m pip install -U discord.py Example 2: import discord python import discord