#How do i check channel name ( something like dicsord.TextChannel.name
1 messages · Page 1 of 1 (latest)
it will return "test" not "#test"
also you are accessing the actual class itself, not the actual instance of the GuildChannel
You don't learn Pycord without learning Python basics
so you are telling me that you know Python and don't know about classes
?tag lp
Official Beginner's Guide: https://wiki.python.org/moin/BeginnersGuide
Official Tutorial: https://docs.python.org/3/tutorial/
Shortcuts:
https://wiki.python.org/moin/BeginnersGuide/NonProgrammers
https://wiki.python.org/moin/BeginnersGuide/Programmers
Learn Python:
https://automatetheboringstuff.com/ (for complete beginners to programming)
https://learnxinyminutes.com/docs/python3/ (for people who know programming already)
https://docs.python.org/3/tutorial/ (official tutorial)
http://python.swaroopch.com/ (useful book)
http://www.codeabbey.com/ (exercises for beginners)
The channel whose name you want to compare is an instance of the discord.abc.GuildChannel class
so to check the name of that specific channel you need to use the channel object