static function getTypeForChannel(\CharlotteDunois\Yasmin\Interfaces\ChannelInterface $channel) {
        if($channel instanceof \CharlotteDunois\Yasmin\Interfaces\GroupDMChannelInterface) {
            return self::CHANNEL_TYPES['group'];
        } elseif($channel instanceof \CharlotteDunois\Yasmin\Interfaces\DMChannelInterface) {
            return self::CHANNEL_TYPES['dm'];
        } elseif($channel instanceof \CharlotteDunois\Yasmin\Interfaces\GuildVoiceChannelInterface) {
            return self::CHANNEL_TYPES['voice'];
        } elseif($channel instanceof \CharlotteDunois\Yasmin\Interfaces\CategoryChannelInterface) {
            return self::CHANNEL_TYPES['category'];
        } elseif($channel instanceof \CharlotteDunois\Yasmin\Interfaces\GuildNewsChannelInterface) {
            return self::CHANNEL_TYPES['news'];
        } elseif($channel instanceof \CharlotteDunois\Yasmin\Interfaces\GuildStoreChannelInterface) {
            return self::CHANNEL_TYPES['store'];
        }
        
        return self::CHANNEL_TYPES['text'];
    }
static function getTypeForChannel(\CharlotteDunois\Yasmin\Interfaces\ChannelInterface $channel) {
        if($channel instanceof \CharlotteDunois\Yasmin\Interfaces\GroupDMChannelInterface) {
            return self::CHANNEL_TYPES['group'];
        } elseif($channel instanceof \CharlotteDunois\Yasmin\Interfaces\DMChannelInterface) {
            return self::CHANNEL_TYPES['dm'];
        } elseif($channel instanceof \CharlotteDunois\Yasmin\Interfaces\GuildVoiceChannelInterface) {
            return self::CHANNEL_TYPES['voice'];
        } elseif($channel instanceof \CharlotteDunois\Yasmin\Interfaces\CategoryChannelInterface) {
            return self::CHANNEL_TYPES['category'];
        } elseif($channel instanceof \CharlotteDunois\Yasmin\Interfaces\GuildNewsChannelInterface) {
            return self::CHANNEL_TYPES['news'];
        } elseif($channel instanceof \CharlotteDunois\Yasmin\Interfaces\GuildStoreChannelInterface) {
            return self::CHANNEL_TYPES['store'];
        }
        
        return self::CHANNEL_TYPES['text'];
    }
static function getTypeForChannel ( \ CharlotteDunois \ Yasmin \ Interfaces \ ChannelInterface $ channel ) { if ( $ channel instanceof \ CharlotteDunois \ Yasmin \ Interfaces \ GroupDMChannelInterface ) { return self :: CHANNEL_TYPES [ 'group' ] ; } elseif ( $ channel instanceof \ CharlotteDunois \ Yasmin \ Interfaces \ DMChannelInterface ) { return self :: CHANNEL_TYPES [ 'dm' ] ; } elseif ( $ channel instanceof \ CharlotteDunois \ Yasmin \ Interfaces \ GuildVoiceChannelInterface ) { return self :: CHANNEL_TYPES [ 'voice' ] ; } elseif ( $ channel instanceof \ CharlotteDunois \ Yasmin \ Interfaces \ CategoryChannelInterface ) { return self :: CHANNEL_TYPES [ 'category' ] ; } elseif ( $ channel instanceof \ CharlotteDunois \ Yasmin \ Interfaces \ GuildNewsChannelInterface ) { return self :: CHANNEL_TYPES [ 'news' ] ; } elseif ( $ channel instanceof \ CharlotteDunois \ Yasmin \ Interfaces \ GuildStoreChannelInterface ) { return self :: CHANNEL_TYPES [ 'store' ] ; } return self :: CHANNEL_TYPES [ 'text' ] ; }
Get the type for the channel.
@param \CharlotteDunois\Yasmin\Interfaces\ChannelInterface  $channel
@return int
Get the type for the channel .