Discord.py: CategoryChannel should not implement abc.GuildChannel

Created on 13 Sep 2017  路  2Comments  路  Source: Rapptz/discord.py

Given an instance:

  • CategoryChannel.category returns None (I don't think it ever won't do that)
  • CategoryChannel.mention returns something along the lines of <#357575435170742273>, which turns into #test category (unclickable text)
  • This one's my favorite. If you do CategoryChannel.create_invite() it makes an invite to the category itself, and when it's joined, the interface is messed up, it's as if you're messaging the category channel, thus Clyde does not allow this.

This should probably be mentioned to Jake or someone up-there as well, because of this image:

image

It shows the invite as pointing to the category.


Exhibit 2:

image

I'd list the things wrong in this screenshot here but it's rather obvious.

disclaimer: this screenshot is in stable discordapp.com chat, though that shouldn't change anything besides visibility of categories on the left.

invalid

Most helpful comment

The first point is kind of moot. It's there because it needs to be there for compatibility. I'm not gonna remove it.

The second point is being handled fine by the client so not much change there either. Voice channels have the same thing as far as I know.

The final point seems to be a client bug rather than one with the library. Probably bad handling of category invites rather than it being something meant to be forbidden. However I don't actually know.

All 2 comments

Well, it is a guild channel, so naturally it should implement abc.GuildChannel.

Maybe it should raise errors on those methods instead of replacing the correct superclass.

The first point is kind of moot. It's there because it needs to be there for compatibility. I'm not gonna remove it.

The second point is being handled fine by the client so not much change there either. Voice channels have the same thing as far as I know.

The final point seems to be a client bug rather than one with the library. Probably bad handling of category invites rather than it being something meant to be forbidden. However I don't actually know.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Yolotroll101 picture Yolotroll101  路  3Comments

JackL0 picture JackL0  路  3Comments

jzburda picture jzburda  路  3Comments

PicklesJars picture PicklesJars  路  3Comments

superloach picture superloach  路  3Comments