Python Forum
Creating Discord Bot: Unused import statement 'import discord
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating Discord Bot: Unused import statement 'import discord
#1
Hi everyone,

I'm trying to create a bot in Discord, using these tutorials
1.https://realpython.com/how-to-make-a-discord-bot-python/
2.https://www.youtube.com/watch?v=nW8c7vT6Hl4&t=182s

I'm running into an issue when importing Discord.py.
Import Discord
has the error "Unused import statement 'import discord' "
https://imgur.com/uMicV32

I'm new, so I'm very unsure what the issue is. I have the latest version of Pip and Python, and I've installed Discord.py via py -3 -m pip install -U discord.py in Terminal, and got two libraries
LIBRARIES BELOW IF NEEDED:
https://drive.google.com/open?id=1BzSemJ...S3VnrSIGQU

I've been told to switch the interpreter, but I'm unsure what to do with that (Or if its even pertinent).

If you have a solution, please let me know. Thanks in advance!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Puzzling import issue that I have no idea how to solvr starseeker 3 432 Feb-21-2024, 05:07 PM
Last Post: deanhystad
  Different Ways to Import Modules RockBlok 2 464 Dec-11-2023, 04:29 PM
Last Post: deanhystad
  How secure is the use of "secret" import? ejwjohn 12 1,154 Nov-09-2023, 08:31 AM
Last Post: ejwjohn
  is import cointegration_analysis a recognized module mitcht33 1 385 Nov-06-2023, 09:29 PM
Last Post: deanhystad
  problem in import module from other folder akbarza 5 1,259 Sep-01-2023, 07:48 AM
Last Post: Gribouillis
  can not import anaconda pandas module. PySpark pandas module is imported!! aupres 0 680 Aug-06-2023, 01:09 AM
Last Post: aupres
  Error on import: SyntaxError: source code string cannot contain null bytes kirkwilliams2049 7 6,165 Aug-03-2023, 06:00 PM
Last Post: Gribouillis
  I try to import Vpython and I get a "ZeroDivisionError" Jon2222 16 2,469 Jul-26-2023, 07:37 AM
Last Post: Jon2222
  [WORKED AROUND] Problem installing elitech-datareader, 'cannot import build_py_2to3' NeilUK 4 1,564 Jul-09-2023, 10:01 AM
Last Post: NeilUK
  [solved] What is the best/pytonic way to import with dependency ? SpongeB0B 2 640 Jul-09-2023, 05:05 AM
Last Post: SpongeB0B

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020