Split channel types.
This splits them into the following: * DMChannel * GroupChannel * VoiceChannel * TextChannel This also makes the channels "stateful".
This commit is contained in:
		@@ -57,7 +57,7 @@ class CallMessage:
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def channel(self):
 | 
			
		||||
        """:class:`PrivateChannel`\: The private channel associated with this message."""
 | 
			
		||||
        """:class:`GroupChannel`\: The private channel associated with this message."""
 | 
			
		||||
        return self.message.channel
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
@@ -131,7 +131,7 @@ class GroupCall:
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def channel(self):
 | 
			
		||||
        """:class:`PrivateChannel`\: Returns the channel the group call is in."""
 | 
			
		||||
        """:class:`GroupChannel`\: Returns the channel the group call is in."""
 | 
			
		||||
        return self.call.channel
 | 
			
		||||
 | 
			
		||||
    def voice_state_for(self, user):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user